Created
July 8, 2022 18:22
-
-
Save nietzscheson/b8b3d5e2fce60246e40b43345df7d5ff to your computer and use it in GitHub Desktop.
Gitlab Locally Test Runner
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
### .gitlab-ci.yml | |
image: alpine | |
test: | |
script: | |
- echo "Hello Gitlab-Runner" | |
### Pull Gitlab Runner image | |
docker run -d \ | |
--name gitlab-runner \ | |
--restart always \ | |
-v $PWD:$PWD \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
gitlab/gitlab-runner:latest | |
### Execute the step | |
docker exec -it -w $PWD gitlab-runner gitlab-runner exec docker <put_here_step_name> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment