2017-09-10 17:25:29 +05:30
|
|
|
build-master:
|
2019-09-04 21:01:54 +05:30
|
|
|
# Official docker image.
|
|
|
|
image: docker:latest
|
2017-09-10 17:25:29 +05:30
|
|
|
stage: build
|
2019-09-04 21:01:54 +05:30
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
before_script:
|
|
|
|
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
2017-09-10 17:25:29 +05:30
|
|
|
script:
|
|
|
|
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
|
|
|
|
- docker push "$CI_REGISTRY_IMAGE"
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2016-06-22 15:30:34 +05:30
|
|
|
build:
|
2019-09-04 21:01:54 +05:30
|
|
|
# Official docker image.
|
|
|
|
image: docker:latest
|
2016-06-22 15:30:34 +05:30
|
|
|
stage: build
|
2019-09-04 21:01:54 +05:30
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
before_script:
|
|
|
|
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
2016-06-22 15:30:34 +05:30
|
|
|
script:
|
2017-09-10 17:25:29 +05:30
|
|
|
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
|
|
|
|
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
|
|
|
|
except:
|
|
|
|
- master
|