Created
June 4, 2021 10:36
-
-
Save maltoe/ed2ba6d44bdef480ef717cfcfc6c5d56 to your computer and use it in GitHub Desktop.
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
build: | |
image: docker:19.03.15 | |
services: | |
- docker:19.03.15-dind | |
script: | |
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY | |
- docker build -t $CI_REGISTRY/group/project/image:latest . | |
- docker push $CI_REGISTRY/group/project/image:latest | |
variables: | |
# This is *the way* to disable TLS for dockerd 19. dockerd 20 does not understand this! | |
# Docker 20 should understand the `--tls=false` command line option according to | |
# https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27300 | |
# but I could not get this to work on docker:20.07.15-dind | |
DOCKER_TLS_CERTDIR: "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment