Skip to content

Instantly share code, notes, and snippets.

@Servuc
Created August 6, 2018 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Servuc/c98ef355d35848438c8da19d93adf979 to your computer and use it in GitHub Desktop.
Save Servuc/c98ef355d35848438c8da19d93adf979 to your computer and use it in GitHub Desktop.
Example of continue integration to Docker Hub
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