Skip to content

Commit

Permalink
Use a version label for tag builds
Browse files Browse the repository at this point in the history
When building a release for a tag we have to build a multi arch image
ourselves. So far we tagged it with a tag `<short-sha>-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
  • Loading branch information
drogus committed Jan 24, 2024
1 parent d67c1db commit ef7b6d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/merge-docker-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ef7b6d9

Please sign in to comment.