Created
April 19, 2019 18:23
-
-
Save SevereCloud/1cfde6d2ce29d3ef51a5c933a82cf693 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: | |
RELEASE_IMAGE: $CI_REGISTRY_IMAGE:latest | |
before_script: | |
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY | |
build: | |
stage: build | |
script: | |
- docker build --pull -t $RELEASE_IMAGE . | |
- docker push $RELEASE_IMAGE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment