Version control
Argonaut currently supports connecting to the following:
- GitHub
- GitLab (SaaS and self-hosted)
GitHub
To connect Argonaut to your GitHub repository:
- Click on the
Settings
icon ⚙ on the top right of the top nav. - Click
Version Control
on the left pane. - Scroll to
GitHub
. - Click
+
. - Click on the GitHub account you’d like to connect with Argonaut. You’ll host your sample application on this account.
- Click on
Install
to installArgonautBot
on your chosen GitHub account. - Enter your password, and click on
Confirm Password
. - On successfully connecting your GitHub account, you’ll be redirected to the
Version Control
page that shows your GitHub account.
You can now deploy any code that is a part of the connected repository using Argonaut.
GitLab SaaS
To connect Argonaut to your GitLab project:
- Click on the
Settings
icon ⚙ on the top right of the top nav. - Click
Version Control
on the left pane. - Scroll to
GitLab
. - Click
+
. - Click on the GitLab account you’d like to connect with Argonaut. Your application repo is on this account.
- Enter your password, and click on
Confirm Password
. - On successfully connecting your GitLab account, you’ll be redirected to the
Version Control
page that shows the accessible GitLab projects. - The permissions granted to Argonaut will be the same as the connected user's permissions.
GitLab self-hosted
For self-hosted GitLab, connect to Argonaut by doing this:
- Navigate to the
Applications
tab on the left sidebar. - Click on
Add Application
and create anoauth application
. This is for Argonaut to get OAuth access to GitLab.- Name the application
ArgonautBot
. - The application can be made confidential.
- Grant scope of
api
- Redirect URI must be
https://ship.argonaut.dev/auth/gitlab/callback
. - Save application
- Name the application
- Note the GitLab application ID, GitLab application secret.
- Go to the Argonaut UI and click on the
Settings
icon ⚙ on the top right of the top nav. - Select
Version Control
on the left pane. - Scroll to
GitLab
. - Click
+
. - Connect GitLab and enter the application ID and secret noted from the earlier step in the advanced section.
- Enter your password, and click on
Confirm Password
. - On successfully connecting your GitLab account, you’ll be redirected to the
Version Control
page that shows the accessible GitLab projects.
You can now deploy any code that is a part of the connected repository using Argonaut.