Skip to content

Commit

Permalink
ops: rollback action if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Zibbp committed Feb 13, 2025
1 parent 7c83456 commit 7a01c6b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/docker-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ jobs:
# Login into GitHub Container Registry except on PR
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v3
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && !(github.event_name == 'pull_request' && github.actor == 'dependabot[bot]') }}
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -97,7 +96,7 @@ jobs:
id: build
uses: docker/build-push-action@v6
with:
push: ${{ github.event.pull_request.head.repo.full_name == github.repository && !(github.event_name == 'pull_request' && github.actor == 'dependabot[bot]') }}
push: true
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
Expand All @@ -114,7 +113,6 @@ jobs:
- name: Upload digest
uses: actions/upload-artifact@v4
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && !(github.event_name == 'pull_request' && github.actor == 'dependabot[bot]') }}
with:
name: digests-${{ env.PLATFORM_PAIR }}
path: ${{ runner.temp }}/digests/*
Expand All @@ -125,9 +123,6 @@ jobs:
runs-on: ubuntu-latest
needs:
- build
if: >-
github.actor != 'dependabot[bot]' &&
(github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push')
steps:
- name: Set correct OCI image name
id: ociImageName
Expand All @@ -145,7 +140,6 @@ jobs:

- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v3
if: github.event.pull_request.head.repo.full_name == github.repository
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand Down

0 comments on commit 7a01c6b

Please sign in to comment.