diff options
-rw-r--r-- | make-hyperbola.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/make-hyperbola.sh b/make-hyperbola.sh index 59ddcfa..14a853a 100644 --- a/make-hyperbola.sh +++ b/make-hyperbola.sh @@ -82,11 +82,16 @@ docker build --no-cache --platform=linux/386 --tag "$DOCKER_USERNAME/hyperbola:$ docker push "$DOCKER_USERNAME/hyperbola:$tag-amd64" docker push "$DOCKER_USERNAME/hyperbola:$tag-386" -# Create and push the manifest for the specified tag +# Create and push the manifest to specified tag docker manifest create "$DOCKER_USERNAME/hyperbola:$tag" \ --amend "$DOCKER_USERNAME/hyperbola:$tag-386" \ --amend "$DOCKER_USERNAME/hyperbola:$tag-amd64" +# Set amd64 leader to specified tag +docker manifest annotate "$DOCKER_USERNAME/hyperbola:$tag" \ + "$DOCKER_USERNAME/hyperbola:$tag-amd64" --os linux --arch amd64 + +# Push specified tag docker manifest push "$DOCKER_USERNAME/hyperbola:$tag" # Create and push the manifest for "latest" @@ -94,6 +99,11 @@ docker manifest create "$DOCKER_USERNAME/hyperbola:$latest_tag" \ --amend "$DOCKER_USERNAME/hyperbola:$tag-386" \ --amend "$DOCKER_USERNAME/hyperbola:$tag-amd64" +# Set amd64 leader to latest +docker manifest annotate "$DOCKER_USERNAME/hyperbola:$latest_tag" \ + "$DOCKER_USERNAME/hyperbola:$tag-amd64" --os linux --arch amd64 + +# Push to latest docker manifest push "$DOCKER_USERNAME/hyperbola:$latest_tag" # Get the token |