Connecting a GIT repository to an application
You can easily link a GIT repository to your application and deploy from a branch with ease.
You can easily link a GIT repository to your application and even change it whenever you want!
First, create an application.
On the application detail screen on the left, you’ll see “No code source configured”. Click the gear icon next to the message. A modal will popup in which you can select a “Code source”.
Click on “git” and enter the url to your git repository.
When you enter the url, the UI automatically determines whether it is a HTTPS or SSH repository url.
Https git urls
When your git url starts with https://
you have the option to enable
authentication (http basic auth). When you enable this, you can enter
the username and password.
If your repository is not protected with an username or password, there’s no need to enable this.
If the “Branch” dropdown is empty, please click the “Refresh” button.
Select the desired branch or tag and click the green “Save” button. You can change the branch or tag at any time.
SSH git urls
To access the repository, the DeltaBlue platform needs to get access to your git repository. When you click the “Generate” button, an ssh key is generated that should be added to your git repository as a deploy key. Please consult the documentation of your git infrastructure on how to do so.
You can use the ‘copy/paste’ button on the right to easily copy the key.
Leave this window open while you add the key to your git repository. Once this is done, you will be able to select a branch (or tag) in the dropdown.
If the “Branch” dropdown is empty, please click the “Refresh” button.
You can change this branch or tag at any time. Click the green “Save” button and your changes are stored.
Deployment
When you have a scenario with a “git clone” or “git clone with symlink” task, the branch or tag you just set up will be deployed. Obviously, if you change the branch or tag and run the deploy scenario again, the new branch/tag will be deployed.