mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-13 03:52:55 +01:00
Add push opt to custom build
This commit is contained in:
parent
1c07a37ea3
commit
d1f562aaca
1 changed files with 10 additions and 1 deletions
|
|
@ -4,7 +4,16 @@
|
||||||
# Hack to set an array in /bin/sh
|
# Hack to set an array in /bin/sh
|
||||||
# http://unix.stackexchange.com/a/137571
|
# http://unix.stackexchange.com/a/137571
|
||||||
- set -- $CI_JOB_NAME
|
- set -- $CI_JOB_NAME
|
||||||
- docker buildx build --cache-from="$CI_REGISTRY_IMAGE:$1" --cache-to=type=inline --label "ci_pipeline_url=$CI_PIPELINE_URL" --label "ci_job_url=$CI_JOB_URL" -t "$CI_REGISTRY_IMAGE:$1" -f "Dockerfile.$1" .
|
- |
|
||||||
|
docker buildx build \
|
||||||
|
--cache-to=type=inline \
|
||||||
|
--cache-from="$CI_REGISTRY_IMAGE:$1" \
|
||||||
|
--push="${PUSH_CUSTOM_IMAGE}" \
|
||||||
|
--label "ci_pipeline_url=$CI_PIPELINE_URL" \
|
||||||
|
--label "ci_job_url=$CI_JOB_URL" \
|
||||||
|
-t "$CI_REGISTRY_IMAGE:$1" \
|
||||||
|
-f "Dockerfile.$1" \
|
||||||
|
.
|
||||||
|
|
||||||
# Used by https://gitlab.com/gitlab-org/charts/auto-deploy-app/-/blob/master/.gitlab-ci.yml
|
# Used by https://gitlab.com/gitlab-org/charts/auto-deploy-app/-/blob/master/.gitlab-ci.yml
|
||||||
alpine-helm:
|
alpine-helm:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue