From 39440ad7236013f8ec80c5e297f81f47ee203c42 Mon Sep 17 00:00:00 2001 From: dhommen Date: Wed, 24 Jan 2024 20:41:49 +0100 Subject: [PATCH] fix(ci): check if fork pr to skip docker build jobs --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c23ee2701..a2fab35d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,6 +88,7 @@ jobs: USERNAME: ${{ github.actor }} TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: "Docker Image: edc-dev" + if: ${{ github.event.pull_request.head.repo.full_name == 'org/repo' }} uses: ./.github/actions/build-connector-image with: registry-url: ${{ env.REGISTRY_URL }} @@ -99,6 +100,7 @@ jobs: title: "sovity Dev EDC Connector" description: "Extended EDC Connector built by sovity. This dev version contains no dataspace auth and can be used to quickly start a locally running EDC + EDC UI." - name: "Docker Image: edc-ce" + if: ${{ github.event.pull_request.head.repo.full_name == 'org/repo' }} uses: ./.github/actions/build-connector-image with: registry-url: ${{ env.REGISTRY_URL }} @@ -110,6 +112,7 @@ jobs: title: "sovity Community Edition EDC Connector" description: "EDC Connector built by sovity. Contains sovity's Community Edition EDC extensions and requires dataspace credentials to join an existing dataspace." - name: "Docker Image: edc-ce-mds" + if: ${{ github.event.pull_request.head.repo.full_name == 'org/repo' }} uses: ./.github/actions/build-connector-image with: registry-url: ${{ env.REGISTRY_URL }} @@ -121,6 +124,7 @@ jobs: title: "MDS Community Edition EDC Connector" description: "EDC Connector built by sovity and configured for compatibility with the Mobility Data Space (MDS). This EDC requires dataspace credentials, and additional MDS Services such as a Clearing House." - name: "Docker Image: test-backend" + if: ${{ github.event.pull_request.head.repo.full_name == 'org/repo' }} uses: ./.github/actions/build-connector-image with: registry-url: ${{ env.REGISTRY_URL }}