initial commit

This commit is contained in:
ThetaDev
2024-03-02 19:28:02 +01:00
commit ea98c81427
6 changed files with 273 additions and 0 deletions

32
Dockerfile Normal file
View 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>"