Created
August 6, 2018 11:27
-
-
Save Servuc/c98ef355d35848438c8da19d93adf979 to your computer and use it in GitHub Desktop.
Example of continue integration to Docker Hub
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
stages: | |
- build | |
variables: | |
CONTAINER_TAG: IMAGE_NAME:$CI_BUILD_REF_NAME | |
buildContainer: | |
image: docker:latest | |
stage: build | |
script: | |
- docker build -t $CONTAINER_TAG . | |
- docker push $CONTAINER_TAG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment