Created
February 6, 2017 05:50
-
-
Save gliwka/c29881be9bbd8bc5487d6209d95aaf36 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
image: docker:latest | |
services: | |
- docker:dind | |
stages: | |
- build | |
before_script: | |
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY | |
build: | |
stage: build | |
script: | |
- docker build --pull -t $CI_REGISTRY_IMAGE . | |
- docker push $CI_REGISTRY_IMAGE | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gist is a part of the blog post at https://medium.com/matthias-gliwka/build-docker-images-on-each-push-with-gitlab-3d006a765856