plugin to push image archives to registry

Patrick Cleavelin 2023-02-15 17:28:28 -06:00
commit a772580673
2 changed files with 11 additions and 0 deletions

5
Dockerfile Normal file
View File

@ -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

6
plugin.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
set -e
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}