Skip to content

Instantly share code, notes, and snippets.

@1c7
Created February 2, 2019 08:44
Show Gist options
  • Save 1c7/b91b03d88b53435e4b2c7c6f3a895beb to your computer and use it in GitHub Desktop.
Save 1c7/b91b03d88b53435e4b2c7c6f3a895beb to your computer and use it in GitHub Desktop.
.gitlab-ci.yml example
image: gitlab/dind
stages:
- build_and_publish_image
b_and_p:
stage: build_and_publish_image
script:
- docker login -u [username] -p [password] registry.gitlab.com
- docker build -t registry.gitlab.com/1c7/ccb .
- docker push registry.gitlab.com/1c7/ccb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment