Skip to content

Instantly share code, notes, and snippets.

@herpiko
Last active June 26, 2019 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save herpiko/16b7db4facf357a3fbbbfdf791d413f7 to your computer and use it in GitHub Desktop.
Save herpiko/16b7db4facf357a3fbbbfdf791d413f7 to your computer and use it in GitHub Desktop.

Gitlab CI Example

  1. Runner machine: Install docker and docker-compose
  2. Runner machine: Registering the runner as shell
  3. Runner machine: Run the runner
  4. Runner machine: Allow gitlab-runner to access docker service
  5. Gitlab: Disable shared runner on CI settings
  6. Gitlab: Generate access token with api and registry access enabled
  7. Docker: Log into registry.gitlab.com using access token
  8. Runner machine: Generate SSH key, put itself into authorized_keys
  9. Set private key and registry token as envar on CI settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment