mirror of
https://code.thetadev.de/actions/kaniko.git
synced 2026-04-28 18:31:44 +00:00
initial commit
This commit is contained in:
32
Dockerfile
Normal file
32
Dockerfile
Normal file
@@ -0,0 +1,32 @@
|
||||
FROM gcr.io/kaniko-project/executor:v1.21.0-debug
|
||||
|
||||
SHELL ["/busybox/sh", "-c"]
|
||||
|
||||
# Download crane
|
||||
RUN set -eux; \
|
||||
case "$(arch)" in \
|
||||
'x86_64') \
|
||||
url='https://github.com/google/go-containerregistry/releases/download/v0.19.0/go-containerregistry_Linux_x86_64.tar.gz'; \
|
||||
sha256='daa629648e1d1d10fc8bde5e6ce4176cbc0cd48a32211b28c3fd806e0fa5f29b'; \
|
||||
;; \
|
||||
'aarch64') \
|
||||
url='https://github.com/google/go-containerregistry/releases/download/v0.19.0/go-containerregistry_Linux_arm64.tar.gz'; \
|
||||
sha256='d439957c1a9d6bc0870be921e25753a7fa67bf2b2691b77ce48a6fc25bc719a0'; \
|
||||
;; \
|
||||
*) echo >&2 "error: unsupported architecture '$arch' (likely packaging update needed)"; exit 1 ;; \
|
||||
esac; \
|
||||
\
|
||||
cd /workspace; \
|
||||
wget -O crane.tar.gz "$url"; \
|
||||
echo "$sha256 crane.tar.gz" | sha256sum -c -; \
|
||||
tar -xzf crane.tar.gz; \
|
||||
mv crane /kaniko; \
|
||||
rm *; \
|
||||
mkdir /build;
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
LABEL repository="https://code.thetadev.de/ThetaDev/action-kaniko" \
|
||||
maintainer="ThetaDev <thetadev@magenta.de>"
|
||||
Reference in New Issue
Block a user