Skip to content

Commit

Permalink
Simplify check on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
bdhoine committed Dec 11, 2024
1 parent ca8c48a commit 112a0cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
with:
platforms: linux/${{ matrix.arch }}
- name: Log in to container registry
if: github.ref == 'refs/heads/main'
if: github.ref_name == 'main'
uses: docker/login-action@v3
with:
registry: ${{ env.registry }}
Expand All @@ -59,7 +59,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.ref == 'refs/heads/main' }}
push: ${{ github.ref_name == 'main' }}
tags: ${{ env.registry }}/${{ github.repository }}:${{ matrix.runmode }}-${{ env.aem_sdk_version }}-${{ matrix.arch }}
platforms: linux/${{ matrix.arch }}
labels: ${{ steps.meta.outputs.labels }}
Expand All @@ -70,7 +70,7 @@ jobs:
- name: Push manifest to registry
run: docker push ${{ env.registry }}/${{ github.repository }}:${{ matrix.runmode }}-${{ env.aem_sdk_version }}-${{ matrix.arch }}
- name: Generate artifact attestation
if: github.ref == 'refs/heads/main'
if: github.ref_name == 'main'
uses: actions/attest-build-provenance@v2
with:
subject-name: ${{ env.registry }}/${{ github.repository }}
Expand All @@ -79,7 +79,7 @@ jobs:

manifest:
name: Create manifest
if: github.ref == 'refs/heads/main'
if: github.ref_name == 'main'
permissions:
packages: write
id-token: write
Expand Down

0 comments on commit 112a0cc

Please sign in to comment.