mirror of
https://github.com/icereed/paperless-gpt.git
synced 2025-03-13 13:18:02 -05:00
feat: enhance Docker manifest creation with --amend and --purge options
This commit is contained in:
parent
e159dba580
commit
3d2b0eb6b0
1 changed files with 12 additions and 12 deletions
24
.github/workflows/docker-build-and-push.yml
vendored
24
.github/workflows/docker-build-and-push.yml
vendored
|
@ -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
|
Loading…
Reference in a new issue