mirror of
https://github.com/aevea/action-kaniko.git
synced 2025-05-09 09:09:59 +02:00
feat: Add option for skip pushing if the digest hasn't changed
This commit is contained in:
parent
c076596480
commit
3b9302effb
4 changed files with 53 additions and 16 deletions
15
Dockerfile
15
Dockerfile
|
@ -1,6 +1,21 @@
|
|||
FROM alpine as certs
|
||||
|
||||
RUN apk --update add ca-certificates
|
||||
|
||||
FROM gcr.io/kaniko-project/executor:debug
|
||||
|
||||
SHELL ["/busybox/sh", "-c"]
|
||||
|
||||
RUN mkdir -p /usr/local/bin && \
|
||||
wget -O /usr/local/bin/jq \
|
||||
https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && \
|
||||
chmod +x /usr/local/bin/jq && \
|
||||
wget -O /usr/local/bin/reg \
|
||||
https://github.com/genuinetools/reg/releases/download/v0.16.1/reg-linux-386 && \
|
||||
chmod +x /usr/local/bin/reg
|
||||
|
||||
COPY entrypoint.sh /
|
||||
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue