1
0
Fork 0
mirror of https://github.com/aevea/action-kaniko.git synced 2025-05-13 02:50:01 +02:00

fix: when skip_unchanged_digest is set the image is built twice

This commit saves the image to tar file and then push it with crane tool
This commit is contained in:
Doron Somech 2020-06-29 15:26:53 +03:00
parent 6030da03d4
commit a046ead304
2 changed files with 13 additions and 10 deletions

View file

@ -11,7 +11,11 @@ RUN wget -O /kaniko/jq \
chmod +x /kaniko/jq && \
wget -O /kaniko/reg \
https://github.com/genuinetools/reg/releases/download/v0.16.1/reg-linux-386 && \
chmod +x /kaniko/reg
chmod +x /kaniko/reg && \
wget -O /crane.tar.gz \
https://github.com/google/go-containerregistry/releases/download/v0.1.1/go-containerregistry_Linux_x86_64.tar.gz && \
tar -xvzf /crane.tar.gz crane -C /kaniko && \
rm crane.tar.gz
COPY entrypoint.sh /
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt