feat: enhance Docker manifest creation with --amend and --purge options

This commit is contained in:
Dominik Schröter 2025-02-02 21:26:09 +01:00
parent e159dba580
commit 3d2b0eb6b0

View file

@ -154,18 +154,18 @@ jobs:
run: |
if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then
VERSION=${GITHUB_REF#refs/tags/}
docker manifest create icereed/paperless-gpt:${VERSION} \
icereed/paperless-gpt:${VERSION}-amd64 \
icereed/paperless-gpt:${VERSION}-arm64
docker manifest push icereed/paperless-gpt:${VERSION}
docker manifest create icereed/paperless-gpt:${VERSION} --amend \
--annotate icereed/paperless-gpt:${VERSION}-amd64 linux/amd64 \
--annotate icereed/paperless-gpt:${VERSION}-arm64 linux/arm64
docker manifest push --purge icereed/paperless-gpt:${VERSION}
docker manifest create icereed/paperless-gpt:latest \
icereed/paperless-gpt:${VERSION}-amd64 \
icereed/paperless-gpt:${VERSION}-arm64
docker manifest push icereed/paperless-gpt:latest
docker manifest create icereed/paperless-gpt:latest --amend \
--annotate icereed/paperless-gpt:${VERSION}-amd64 linux/amd64 \
--annotate icereed/paperless-gpt:${VERSION}-arm64 linux/arm64
docker manifest push --purge icereed/paperless-gpt:latest
else
docker manifest create icereed/paperless-gpt:unreleased \
icereed/paperless-gpt:unreleased-amd64 \
icereed/paperless-gpt:unreleased-arm64
docker manifest push icereed/paperless-gpt:unreleased
docker manifest create icereed/paperless-gpt:unreleased --amend \
--annotate icereed/paperless-gpt:unreleased-amd64 linux/amd64 \
--annotate icereed/paperless-gpt:unreleased-arm64 linux/arm64
docker manifest push --purge icereed/paperless-gpt:unreleased
fi