Update build.sh

This commit is contained in:
Markxu 2024-05-20 09:36:56 +08:00 committed by GitHub
parent ae7dd5a20a
commit acd108f48c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,4 +14,5 @@ latest_docker_tag=$(curl -s "https://hub.docker.com/v2/repositories/${DOCKER_IMA
# fi # fi
echo "Latest tag for $USER/$REPO matching latest is: $latest_tag" echo "Latest tag for $USER/$REPO matching latest is: $latest_tag"
docker buildx build --platform linux/arm64,linux/amd64 -t myimage:latest --push . docker buildx build --platform linux/arm64,linux/amd64 -t "$DOCKER_IMAGE":latest --push .
docker buildx build --platform linux/arm64,linux/amd64 -t "${DOCKER_IMAGE}:${latest_tag}" --push .