HH-707: skip existing image versions (#3)
Build and publish image / image (push) Successful in 13s
Build and publish image / image (push) Successful in 13s
This commit was merged in pull request #3.
This commit is contained in:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user