added tagging and pushing?
This commit is contained in:
parent
e5d383f068
commit
c64c578818
1 changed files with 7 additions and 1 deletions
|
@ -14,4 +14,10 @@ build_image:
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
script:
|
script:
|
||||||
- docker build -t facturio .
|
- docker build -t ${CI_REGISTRY_IMAGE}/facturio:${CI_COMMIT_REF_NAME} .
|
||||||
|
- docker push ${CI_REGISTRY_IMAGE}/facturio:${CI_COMMIT_REF_NAME}
|
||||||
|
- |
|
||||||
|
if [[ -z "${CI_COMMIT_TAG}" ]]; then
|
||||||
|
docker tag ${CI_REGISTRY_IMAGE}/facturio:${CI_COMMIT_REF_NAME} ${CI_REGISTRY_IMAGE}/facturio:${CI_COMMIT_TAG}
|
||||||
|
docker push ${CI_REGISTRY_IMAGE}/facturio:${CI_COMMIT_TAG}
|
||||||
|
fi
|
||||||
|
|
Reference in a new issue