Created
February 23, 2018 23:22
-
-
Save chrisDeFouRire/8aba55c62adad653b1adfbb1648f644e 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 | |
variables: | |
IMAGE: registry.gitlab.com/me/myproject | |
before_script: | |
- docker login -u $GITLABUSER -p $GITLABPWD registry.gitlab.com | |
build: | |
stage: build | |
script: | |
- docker build --pull --build-arg TAG=$CI_COMMIT_REF_NAME --build-arg BUILD=$CI_COMMIT_SHA -t ${IMAGE}:latest . | |
- docker push $IMAGE | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment