Skip to content

Commit

Permalink
Port 5610 fix ci failing for non existing image (#275)
Browse files Browse the repository at this point in the history
* handling docker manifest inspect exit code
  • Loading branch information
yairsimantov20 authored Dec 19, 2023
1 parent 126cf49 commit 6ee5949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
version=$(grep -E '^version = ".*"' "$folder/../pyproject.toml" | cut -d'"' -f2)
# Check if the version exists in the ghcr.io registry
docker manifest inspect ghcr.io/port-labs/port-ocean-$type:$version > /dev/null 2>&1
rc=$?
rc=0
docker manifest inspect ghcr.io/port-labs/port-ocean-$type:$version > /dev/null 2>&1 || rc=$?
if [ $rc -eq 0 ]; then
echo "Image already exists in $repository: port-ocean-$type:$version"
Expand Down

0 comments on commit 6ee5949

Please sign in to comment.