aboutsummaryrefslogtreecommitdiffstats
path: root/make-hyperbola.sh
diff options
context:
space:
mode:
authorJesus <heckyel@riseup.net>2023-09-25 11:12:27 +0800
committerJesus <heckyel@riseup.net>2023-09-25 11:12:27 +0800
commit3da67d36594646978fb7a107e1e796c9dbac26da (patch)
tree1bfc280014d08ac574a8d505be4e03f93e1bbe97 /make-hyperbola.sh
parent5b9aef614597dfcdc8bc817369afecce6c5c5044 (diff)
downloadhyperbola-docker-master.tar.lz
hyperbola-docker-master.tar.xz
hyperbola-docker-master.zip
Set leader amd64HEADmaster
Diffstat (limited to 'make-hyperbola.sh')
-rw-r--r--make-hyperbola.sh12
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