mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Properly tag images when building them
This commit is contained in:
parent
db5a4f37ea
commit
94ebd90c7f
2 changed files with 2 additions and 2 deletions
|
|
@ -21,5 +21,5 @@
|
||||||
.build_and_deploy_custom:
|
.build_and_deploy_custom:
|
||||||
extends: .deploy
|
extends: .deploy
|
||||||
script:
|
script:
|
||||||
- ./scripts/custom-docker-build --label "ci_pipeline_url=$CI_PIPELINE_URL" --label "ci_job_url=$CI_JOB_URL" -t "$CI_REGISTRY_IMAGE:$1"
|
- ./scripts/custom-docker-build --label "ci_pipeline_url=$CI_PIPELINE_URL" --label "ci_job_url=$CI_JOB_URL"
|
||||||
- ./scripts/custom-docker-push
|
- ./scripts/custom-docker-push
|
||||||
|
|
|
||||||
|
|
@ -288,7 +288,7 @@ function build_custom_if_needed() {
|
||||||
|
|
||||||
# This re-uses and builds an existing image if needed
|
# This re-uses and builds an existing image if needed
|
||||||
docker pull --quiet "$full_image" || true
|
docker pull --quiet "$full_image" || true
|
||||||
docker_command=$(generate_command $@ --cache-from="$full_image_name" )
|
docker_command=$(generate_command $@ --cache-from="$full_image_name" -t "$full_image_name")
|
||||||
echo "Docker command:"
|
echo "Docker command:"
|
||||||
printf "\t%s" "$docker_command"
|
printf "\t%s" "$docker_command"
|
||||||
eval $docker_command
|
eval $docker_command
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue