stages: - build - test - deploy variables: # disable Docker TLS validation DOCKER_TLS_CERTDIR: "" # localhost address is shared by both the job container and the dind container (as they share the same Pod) # So this configuration make the dind service as our Docker daemon when running Docker commands DOCKER_HOST: "tcp://localhost:2375" services: - docker:stable-dind docker-build: image: docker:stable stage: build script: - docker build - docker tag registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:${CI_COMMIT_SHORT_SHA} - docker push registry.gitlab.com/ConfrerieDuKassoulait/TwitchBot:${CI_COMMIT_SHORT_SHA}