From f68b70b63481825ba562f9e058e6a25b0df1464c Mon Sep 17 00:00:00 2001 From: Patrick Cleavelin Date: Wed, 15 Feb 2023 17:28:28 -0600 Subject: [PATCH] plugin to push image archives to registry --- Dockerfile | 5 +++++ plugin.sh | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 Dockerfile create mode 100644 plugin.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bcd94e3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM alpine +ADD plugin.sh /bin/ +RUN chmod +x /bin/plugin.sh +RUN apk -Uuv add podman ca-certificates +ENTRYPOINT /bin/plugin.sh diff --git a/plugin.sh b/plugin.sh new file mode 100644 index 0000000..4823f44 --- /dev/null +++ b/plugin.sh @@ -0,0 +1,7 @@ +#!/bin/sh +set -e + +podman login -u ${PLUGIN_USERNAME} -p ${PLUGIN_PASSWORD} git.spacegirl.nl +podman image load --input ${PLUGIN_IMAGE_TAR} +podman image tag memejoin-rs git.spacegirl.nl/${PLUGIN_REPO}:${PLUGIN_TAG} +podman image push git.spacegirl.nl/${PLUGIN_REPO}:${PLUGIN_TAG}