HH-707: skip existing image versions (#3)
Build and publish image / image (push) Successful in 13s

This commit was merged in pull request #3.
This commit is contained in:
2026-08-26 19:30:30 +08:00
parent 72b5e78e26
commit 311fd97275
3 changed files with 18 additions and 1 deletions
+5
View File
@@ -20,6 +20,11 @@ asset_url="$(jq -er --arg version "$version" '
' <<<"$release")"
tag="$image:$version"
if [[ "${PUSH:-false}" == "true" ]] && docker manifest inspect "$tag" >/dev/null 2>&1; then
printf 'Image %s already exists; skipping build and push\n' "$tag"
exit 0
fi
docker build --pull --platform linux/amd64 \
--build-arg "CHROME_VERSION=$version" \
--build-arg "CHROME_URL=$asset_url" \