Last active
March 30, 2022 15:10
-
-
Save danielzzz/7f27f773075c5c5e140e8f1a71fdac9b to your computer and use it in GitHub Desktop.
docker 20 with dind for gitlab runner
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: some-image | |
# dind is necessary for docker | |
services: | |
- name: docker:20.10.10-dind | |
alias: docker | |
# THIS IS IMPORTANT! | |
command: ["--tls=false"] | |
build: | |
stage: build | |
image: docker:20.10.10 | |
variables: | |
# THIS IS IMPORTANT! | |
DOCKER_TLS_CERTDIR: "" | |
before_script: | |
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY | |
script: | |
- docker build . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment