mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-24 06:15:46 +00:00
Use dockerconfig for buildah bud
This commit is contained in:
parent
2695a78aab
commit
614c02caf6
@ -73,12 +73,12 @@ spec:
|
||||
workingDir: $(workspaces.source.path)
|
||||
script: |
|
||||
[[ "$(workspaces.sslcertdir.bound)" == "true" ]] && CERT_DIR_FLAG="--cert-dir $(workspaces.sslcertdir.path)"
|
||||
[[ "$(workspaces.dockerconfig.bound)" == "true" ]] && export DOCKER_CONFIG="$(workspaces.dockerconfig.path)"
|
||||
buildah ${CERT_DIR_FLAG} --storage-driver=$(params.STORAGE_DRIVER) bud \
|
||||
$(params.BUILD_EXTRA_ARGS) --format=$(params.FORMAT) \
|
||||
--tls-verify=$(params.TLSVERIFY) --no-cache \
|
||||
-f $(params.DOCKERFILE) -t $(params.IMAGE) $(params.CONTEXT)
|
||||
[[ "$(params.SKIP_PUSH)" == "true" ]] && echo "Push skipped" && exit 0
|
||||
[[ "$(workspaces.dockerconfig.bound)" == "true" ]] && export DOCKER_CONFIG="$(workspaces.dockerconfig.path)"
|
||||
buildah ${CERT_DIR_FLAG} --storage-driver=$(params.STORAGE_DRIVER) push \
|
||||
$(params.PUSH_EXTRA_ARGS) --tls-verify=$(params.TLSVERIFY) \
|
||||
--digestfile /tmp/image-digest $(params.IMAGE) \
|
||||
|
Loading…
Reference in New Issue
Block a user