HH-707: skip existing image versions
Build and publish image / image (pull_request) Successful in 2m47s
Build and publish image / image (pull_request) Successful in 2m47s
Co-authored-by: multica-agent <github@multica.ai>
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