GitHub

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

What is git?

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.


How are we structured?

We have a central repository on Github where each user must fork this repository to start the development of new sites/features. 
 
To publish the code in the main repository, it is needed to open a Pull Request where the Tech lead will approve, after the code passes by the tests made by Pipeline and after approval, the code is merged with the main repository. 
 
The development of the branch reflects in the dev environment while the test branch reflects in the test environment and the master branch is production.  
 
In the Prod environment, we have a few more steps to cover as to how to create a tag and deploy the tag manually inside Acquia site Factory

 
Deploy

Make a pull request

 

1 - Go to forked project https://github.com/abinbevcms/acquiadrupal9


 

2 - Click in “Pull requests” and the button “New pull request”


 

 

3 - Click in the link “compare across forks”

4 - Select your repository

5 - Select destination branch

6 - Select your branch


 

7 - When your changes load, click on “Create pull request” button


 

8 - Populate the title and description of your pull request

Here you can populate with your task identifier, or a better description for your control

 

9 - In the “Labels” section, select the label that best fit with your intention with this pull request

10 - Then click on the “Create pull request” button


 

11 - You need to wait for validation of your code

12 - If you click in “Details”, you will be redirected to Acquia Pipelines page to check in real time all validations that will made in your PR

13 - When it's green, your reviewer, will be able to merge your branch to destination that you select
 

 


 

Deploy

Branches “develop” and “test” will automatically build your merge and deploy to server
You can follow all the process clicking
here, if you have access to this tool.



Only people with special permissions does have access to deploy for production environments.

1 - First you need to create a release tag
2 - Click in
Releases


 

3 - Then “Draf a new release”


 
4 - First fill a tag name form the master branch
5 - Then fill your release name, must be the same of tag name
6 - Put a description about your changes that will be deployed
7 - Finally click in “Publish release”


 
8 - You can follow the deploy proccess at the Acquia Pipelines panel

9 - After Acquia Pipelines finish your release build
10 - Go to Acquia Cloud Site Factory, and click in “Administration”


 
11 - The in “Update code” link


 
12 - Here you will check theses options


 
13 - In the version field select release tag that you created before in the GitHub repository, this will have a suffix name “pipelines-build-”