From 09ba7d0fbf506cceed5d03338ceb8b397fd62c05 Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Wed, 29 Nov 2023 23:43:12 +0100 Subject: [PATCH] DevOps: from forked repo not trigger push and arm64 image build (#573) --- .github/workflows/docker.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 2120e957b..32d0d64a9 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -71,6 +71,7 @@ jobs: image: qe architecture: arm64 runsOn: ARM64 + if: ${{ !github.event.pull_request.head.repo.fork }} amd64-push-ghcr: uses: ./.github/workflows/docker-push.yml @@ -82,6 +83,7 @@ jobs: REGISTRY_USERNAME: ${{ github.actor }} REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }} needs: [amd64] + if: ${{ !github.event.pull_request.head.repo.fork }} arm64-push-ghcr: uses: ./.github/workflows/docker-push.yml @@ -93,6 +95,7 @@ jobs: REGISTRY_USERNAME: ${{ github.actor }} REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }} needs: [arm64] + if: ${{ !github.event.pull_request.head.repo.fork }} merge-tags-ghcr: uses: ./.github/workflows/docker-merge-tags.yml @@ -103,6 +106,7 @@ jobs: REGISTRY_USERNAME: ${{ github.actor }} REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }} needs: [amd64-push-ghcr, arm64-push-ghcr] + if: ${{ !github.event.pull_request.head.repo.fork }} amd64-push-dockerhub: if: github.repository == 'aiidalab/aiidalab-qe' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))