Skip to content

Commit

Permalink
Merge pull request #120 from celo-org/alvarof2-patch-1
Browse files Browse the repository at this point in the history
Update action.yml
  • Loading branch information
alvarof2 authored Apr 8, 2024
2 parents 331163c + 012a8cf commit 050e5d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/actions/build-container/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ runs:
- name: Build container image
uses: docker/build-push-action@v5
id: docker-build-push
id: docker-build
with:
platforms: ${{ inputs.runner_platform }}
file: ${{ inputs.dockerfile }}
Expand All @@ -102,7 +102,7 @@ runs:
run: |
echo "Scanning for oidc credentials"
set +e
docker create --name="tmp_container" ${{ steps.docker-build-push.outputs.imageid }}
docker create --name="tmp_container" ${{ steps.docker-build.outputs.imageid }}
found=$(docker export tmp_container | tar tf - | grep -e "gha-creds-.*.json" | wc -l)
if [ $found -ge 1 ]; then
echo "Found oidc credentials"
Expand All @@ -114,6 +114,7 @@ runs:
- name: Build and push
if: ${{ inputs.push }} == 'true'
uses: docker/build-push-action@v5
id: docker-build-push
with:
platforms: ${{ inputs.platforms }}
file: ${{ inputs.dockerfile }}
Expand Down

0 comments on commit 050e5d3

Please sign in to comment.