Skip to content

Commit

Permalink
[ci][fix] INFRAPRJ-7379: Use proper push switche in context of 'image…
Browse files Browse the repository at this point in the history
…' output
  • Loading branch information
vbaskov-ledger committed Dec 5, 2024
1 parent 710f438 commit 961a6a7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/speculos-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ jobs:
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
if [[ "${{ github.event_name }}" == 'push' && "${{ github.ref }}" == 'refs/heads/master' ]]; then
PUSH_FLAG='true'
else
PUSH_FLAG='false'
fi
echo "PUSH_FLAG=${PUSH_FLAG}" >> $GITHUB_ENV
- name: Clone
uses: actions/checkout@v4

Expand All @@ -58,10 +65,9 @@ jobs:
uses: docker/build-push-action@v6
id: build
with:
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
file: build.Dockerfile
platforms: ${{ matrix.platform }}
outputs: type=image,name=ghcr.io/ledgerhq/speculos-builder,push-by-digest=true,name-canonical=true,push=true
outputs: type=image,name=ghcr.io/ledgerhq/speculos-builder,push-by-digest=true,name-canonical=true,push=${{ env.PUSH_FLAG }}

- name: Export digest
run: |
Expand Down

0 comments on commit 961a6a7

Please sign in to comment.