drone/ContainerImageKaniko: use gitea hosted custom container with bash and jq
This commit is contained in:
parent
b698c6e184
commit
731d26ca9f
@ -1,7 +1,7 @@
|
|||||||
.ContainerImageKaniko: &ContainerImageKaniko
|
.ContainerImageKaniko: &ContainerImageKaniko
|
||||||
name: ContainerImageKaniko
|
name: ContainerImageKaniko
|
||||||
image: gcr.io/kaniko-project/executor:debug
|
# image: gcr.io/kaniko-project/executor:debug
|
||||||
#image: gitea.dhswt.de/dhswt/kaniko:master
|
image: gitea.dhswt.de/dhswt/kaniko:master
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
KANIKO_ARGS: ""
|
KANIKO_ARGS: ""
|
||||||
@ -73,10 +73,8 @@
|
|||||||
|
|
||||||
# merge registry auth
|
# merge registry auth
|
||||||
if [[ "$MERGE_REGISTRY_JSON" == "true" ]] && [[ ! -z "$REGISTRY_AUTH_JSON" ]]; then
|
if [[ "$MERGE_REGISTRY_JSON" == "true" ]] && [[ ! -z "$REGISTRY_AUTH_JSON" ]]; then
|
||||||
wget -O /bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
|
|
||||||
chmod +x /bin/jq
|
|
||||||
debug_log "merging $REGISTRY_AUTH_JSON"
|
debug_log "merging $REGISTRY_AUTH_JSON"
|
||||||
REGISTRY_AUTH_JSON=$(echo "$REGISTRY_AUTH_JSON" | /bin/jq --slurp 'reduce .[] as $item ({}; . * $item)')
|
REGISTRY_AUTH_JSON=$(echo "$REGISTRY_AUTH_JSON" | jq --slurp 'reduce .[] as $item ({}; . * $item)')
|
||||||
debug_log "merged $REGISTRY_AUTH_JSON"
|
debug_log "merged $REGISTRY_AUTH_JSON"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user