Upgrade kaniko version && force flag

This commit is contained in:
Anton Dutov 2021-11-18 10:40:54 +03:00
parent ca7005705e
commit 5f3a4df766
2 changed files with 8 additions and 2 deletions

View File

@ -1,11 +1,16 @@
FROM gcr.io/kaniko-project/executor:debug-v0.19.0 FROM busybox
FROM gcr.io/kaniko-project/executor:v1.7.0
ENV PATH /bin
ENV HOME /root ENV HOME /root
ENV USER root ENV USER root
ENV SSL_CERT_DIR=/kaniko/ssl/certs ENV SSL_CERT_DIR=/kaniko/ssl/certs
ENV DOCKER_CONFIG /kaniko/.docker/ ENV DOCKER_CONFIG /kaniko/.docker/
ENV DOCKER_CREDENTIAL_GCR_CONFIG /kaniko/.config/gcloud/docker_credential_gcr_config.json ENV DOCKER_CREDENTIAL_GCR_CONFIG /kaniko/.config/gcloud/docker_credential_gcr_config.json
COPY --from=busybox / /
# add the wrapper which acts as a drone plugin # add the wrapper which acts as a drone plugin
COPY plugin.sh /kaniko/plugin.sh COPY plugin.sh /kaniko/plugin.sh
ENTRYPOINT [ "/kaniko/plugin.sh" ] ENTRYPOINT [ "/kaniko/plugin.sh" ]

View File

@ -1,4 +1,4 @@
#!/busybox/sh #!/bin/sh
set -euo pipefail set -euo pipefail
@ -99,6 +99,7 @@ fi
/kaniko/executor -v ${LOG} \ /kaniko/executor -v ${LOG} \
--context=${CONTEXT} \ --context=${CONTEXT} \
--dockerfile=${DOCKERFILE} \ --dockerfile=${DOCKERFILE} \
--force \
${EXTRA_OPTS} \ ${EXTRA_OPTS} \
${DESTINATIONS} \ ${DESTINATIONS} \
${CACHE:-} \ ${CACHE:-} \