Skip to content

Commit

Permalink
it should not run release on pr
Browse files Browse the repository at this point in the history
  • Loading branch information
arfrie22 committed Jun 20, 2024
1 parent 7129e39 commit d842658
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ jobs:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64
# Skip pushing when PR from a fork
push: false
outputs: type=oci,dest=./image.tar
cache-from: type=registry,ref=ghcr.io/${{ steps.lower-owner.outputs.owner }}/opensprinkler-build-cache:ospi
Expand Down Expand Up @@ -144,7 +143,7 @@ jobs:
name: Release Docker
runs-on: ubuntu-latest
needs: [build-pio, build-docker]
if: ${{ !github.event.pull_request.head.repo.fork }}
if: ${{ !github.event.pull_request }}
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -165,8 +164,6 @@ jobs:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
# Skip when PR from a fork
if: ${{ !github.event.pull_request.head.repo.fork }}
with:
registry: ghcr.io
username: ${{ env.ACT && github.actor || steps.lower-owner.outputs.owner }}
Expand Down

0 comments on commit d842658

Please sign in to comment.