confd-env/.gitlab-ci.yml

11 lines
356 B
YAML
Raw Normal View History

2017-08-31 12:44:47 +00:00
build:
image: docker:latest
services:
- docker:dind
stage: build
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
2017-08-31 13:07:43 +00:00
- docker build --pull --tag $CI_REGISTRY_IMAGE:master --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA .
2017-08-31 13:02:05 +00:00
- docker push $CI_REGISTRY_IMAGE:master
2017-08-31 12:44:47 +00:00
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA