Set leader amd64
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user