From a76f90c4ee4ef05cdc0bf2ac8b74320551a01d88 Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Fri, 29 Mar 2024 06:42:45 -0400 Subject: [PATCH] Only run GitHub Actions for building docker images from Aspen-Discovery/aspen-discovery --- .github/workflows/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 66e5a7d9ec..394e5ec410 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,7 +5,7 @@ on: jobs: push_aspen_to_dockerhub: name: Push Aspen image to Docker Hub - #if: ${{ always() && format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }} + if: github.repository == 'Aspen-Discovery/aspen-discovery' runs-on: ubuntu-latest steps: - name: Check out the repo @@ -34,7 +34,7 @@ jobs: push_aspen_to_quay: name: Push Aspen image to Quay.io - #if: ${{ always() && format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }} + if: github.repository == 'Aspen-Discovery/aspen-discovery' runs-on: ubuntu-latest steps: - name: Check out the repo @@ -64,7 +64,7 @@ jobs: push_solr_to_dockerhub: name: Push Solr image to Docker Hub - #if: ${{ always() && format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }} + if: github.repository == 'Aspen-Discovery/aspen-discovery' runs-on: ubuntu-latest steps: - name: Check out the repo @@ -93,7 +93,7 @@ jobs: push_solr_to_quay: name: Push Solr image to Quay.io - #if: ${{ always() && format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }} + if: github.repository == 'Aspen-Discovery/aspen-discovery' runs-on: ubuntu-latest steps: - name: Check out the repo @@ -123,7 +123,7 @@ jobs: push_tunnel_to_dockerhub: name: Push Tunnel image to Docker Hub - #if: ${{ always() && format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }} + if: github.repository == 'Aspen-Discovery/aspen-discovery' runs-on: ubuntu-latest steps: - name: Check out the repo @@ -152,7 +152,7 @@ jobs: push_tunnel_to_quay: name: Push Tunnel image to Quay.io - #if: ${{ always() && format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }} + if: github.repository == 'Aspen-Discovery/aspen-discovery' runs-on: ubuntu-latest steps: - name: Check out the repo