Make it possible to change the tag under which a manifest is published

This commit is contained in:
Elara 2023-07-30 12:38:05 -07:00
parent 968bee5406
commit 53d072132f

View File

@ -1,8 +1,11 @@
#!/bin/bash #!/bin/bash
tag="$1"
tag="${tag:=latest}"
docker login gitea.elara.ws docker login gitea.elara.ws
docker manifest create gitea.elara.ws/elara6331/golang:latest \ docker manifest create "gitea.elara.ws/elara6331/golang:$tag" \
--amend gitea.elara.ws/elara6331/golang:amd64 \ --amend gitea.elara.ws/elara6331/golang:amd64 \
--amend gitea.elara.ws/elara6331/golang:arm64 \ --amend gitea.elara.ws/elara6331/golang:arm64 \
--amend gitea.elara.ws/elara6331/golang:riscv64 --amend gitea.elara.ws/elara6331/golang:riscv64
docker manifest push gitea.elara.ws/elara6331/golang:latest docker manifest push "gitea.elara.ws/elara6331/golang:$tag"