Skip to content

Instantly share code, notes, and snippets.

@gliwka
Created February 6, 2017 05:50
Show Gist options
  • Save gliwka/c29881be9bbd8bc5487d6209d95aaf36 to your computer and use it in GitHub Desktop.
Save gliwka/c29881be9bbd8bc5487d6209d95aaf36 to your computer and use it in GitHub Desktop.
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
@gliwka
Copy link
Author

gliwka commented Feb 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment