forked from s3lph/matemat
Fixed CI script; failed on untagged commit
This commit is contained in:
parent
5da3947334
commit
a163bce781
1 changed files with 2 additions and 2 deletions
|
@ -34,11 +34,11 @@ build_docker:
|
|||
script:
|
||||
- docker build -t "registry.gitlab.com/s3lph/matemat:$CI_COMMIT_SHA" -f package/docker/Dockerfile .
|
||||
- docker tag "registry.gitlab.com/s3lph/matemat:$CI_COMMIT_SHA" "registry.gitlab.com/s3lph/matemat:$CI_COMMIT_REF_NAME"
|
||||
- '[[ -n "$CI_COMMIT_TAG" ]] && docker tag "registry.gitlab.com/s3lph/matemat:$CI_COMMIT_SHA" "registry.gitlab.com/s3lph/matemat:$CI_COMMIT_TAG"'
|
||||
- if [[ -n "$CI_COMMIT_TAG" ]]; then docker tag "registry.gitlab.com/s3lph/matemat:$CI_COMMIT_SHA" "registry.gitlab.com/s3lph/matemat:$CI_COMMIT_TAG"; fi
|
||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_TOKEN registry.gitlab.com
|
||||
- docker push "registry.gitlab.com/s3lph/matemat:$CI_COMMIT_SHA"
|
||||
- docker push "registry.gitlab.com/s3lph/matemat:$CI_COMMIT_REF_NAME"
|
||||
- '[[ -n "$CI_COMMIT_TAG" ]] && docker push "registry.gitlab.com/s3lph/matemat:$CI_COMMIT_TAG"'
|
||||
- if [[ -n "$CI_COMMIT_TAG" ]]; then docker push "registry.gitlab.com/s3lph/matemat:$CI_COMMIT_TAG"; fi
|
||||
only:
|
||||
- 27-deployment
|
||||
- staging
|
||||
|
|
Loading…
Reference in a new issue