From 3da67d36594646978fb7a107e1e796c9dbac26da Mon Sep 17 00:00:00 2001 From: Jesus Date: Mon, 25 Sep 2023 11:12:27 +0800 Subject: Set leader amd64 --- make-hyperbola.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3