Skip to content

Commit

Permalink
Get the if statement the right way round...
Browse files Browse the repository at this point in the history
  • Loading branch information
Stringy committed Jan 4, 2024
1 parent 38e1cac commit f6bf126
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
- id: identify-archs
run: |
if docker manifest inspect "${COLLECTOR_IMAGE}"; then
supported_archs="$(docker manifest inspect "${COLLECTOR_IMAGE}" | jq -c '[.manifests[].platform.architecture]')"
else
docker pull "${COLLECTOR_IMAGE}"
supported_archs="$(docker inspect "${COLLECTOR_IMAGE}" | jq -c '[.[].Architecture]')"
else
supported_archs="$(docker manifest inspect "${COLLECTOR_IMAGE}" | jq -c '[.manifests[].platform.architecture]')"
fi
echo "supported_archs=${supported_archs}" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit f6bf126

Please sign in to comment.