From 2975cef4c016f100afaad9528f4bca9428bc03d5 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 24 Jan 2024 16:58:59 +0100 Subject: [PATCH] Use a version label for tag builds When building a release for a tag we have to build a multi arch image ourselves. So far we tagged it with a tag `-full`. This is nice to keep the history of all the tagged commits, but it's not very usable as usually we just want the latest build for a given tag. This commit introduces tagging the build with a git tag --- tools/merge-docker-images.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/merge-docker-images.sh b/tools/merge-docker-images.sh index 2db6cf4f6c7..0361b6bf1b3 100755 --- a/tools/merge-docker-images.sh +++ b/tools/merge-docker-images.sh @@ -32,3 +32,8 @@ docker manifest annotate clockworklabs/spacetimedb:$FULL_TAG \ # Push the manifest docker manifest push clockworklabs/spacetimedb:$FULL_TAG + +# re-tag the manifeast with a tag +VERSION=${GITHUB_REF#refs/*/} +docker buildx imagetools create clockworklabs/spacetimedb:$FULL_TAG --tag clockworklabs/spacetimedb:$VERSION +