Fix 'docker push' command in the '.build_and_deploy' shared job

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2021-02-15 18:17:58 +01:00
parent 0997e1aca8
commit 2510da1419
No known key found for this signature in database
GPG key ID: 4C514D15D07186F1

View file

@ -52,7 +52,7 @@ variables:
- set -- $CI_JOB_NAME - set -- $CI_JOB_NAME
- docker pull "$CI_REGISTRY_IMAGE:$1" || true - docker pull "$CI_REGISTRY_IMAGE:$1" || true
- docker build --cache-from="$CI_REGISTRY_IMAGE:$1" --label "ci_pipeline_url=$CI_PIPELINE_URL" --label "ci_job_url=$CI_JOB_URL" -t "$CI_REGISTRY_IMAGE:$1" -f "Dockerfile.$1" . - docker build --cache-from="$CI_REGISTRY_IMAGE:$1" --label "ci_pipeline_url=$CI_PIPELINE_URL" --label "ci_job_url=$CI_JOB_URL" -t "$CI_REGISTRY_IMAGE:$1" -f "Dockerfile.$1" .
- docker push "$CI_REGISTRY_IMAGE:$CI_JOB_NAME" - docker push "$CI_REGISTRY_IMAGE:$1"
.test_custom: &test_custom .test_custom: &test_custom
extends: .test extends: .test