Last active
June 24, 2019 11:10
-
-
Save ansargondal/7095e13e290e9e9039996236b7ea0a7c to your computer and use it in GitHub Desktop.
GitLab CI/CD Task Runner Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Installing Task runner | |
- sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64 | |
- sudo chmod +x /usr/local/bin/gitlab-runner | |
- curl -sSL https://get.docker.com/ | sh | |
- sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash | |
- sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner | |
- sudo gitlab-runner start | |
- sudo gitlab-runner stop | |
- Registring Runner | |
- sudo gitlab-runner register | |
- https://gitlab.com (Enter Gitlab URL) | |
- Gitlab Token Gitlab > Settings > CI/CD > Runners > Copy Registration Token | |
- Enter some description for runner | |
- Enter 'shell' for the shell access | |
- Adding Gitlab Runner to Usermod | |
- sudo usermod -aG docker gitlab-runner | |
- | |
KEYS: | |
- SECRET_SSH_FILE Type of it should be FILE | |
- SSH_PRIVATE_KEY | |
- SSH_PRIVATE_STAGE | |
- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment