Created
July 12, 2020 16:52
-
-
Save shemul/f647ba0b4277ec718fe5845fbff55c77 to your computer and use it in GitHub Desktop.
gitlab-ci docker in docker host alias
This file contains hidden or 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
image: shemul/gitlab-ci | |
variables: | |
DOCKER_TLS_CERTDIR: "" | |
stages: | |
- test | |
services: | |
- name: docker:dind | |
alias: dlocal | |
test: | |
stage: test | |
script: | |
- docker run --name nginx -d -p 8080:80 nginx:latest | |
- curl "http://dlocal:8080" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment