From aa7b10e8f8f639225705a822e578de4b1302fd6e Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Mon, 1 Nov 2021 13:11:29 +0100 Subject: [PATCH] Only build docker image for galaxyproject repo limit concurrency and only build for release and anvil branches. --- ...ild_image.yaml => build_container_image.yaml} | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) rename .github/workflows/{build_image.yaml => build_container_image.yaml} (89%) diff --git a/.github/workflows/build_image.yaml b/.github/workflows/build_container_image.yaml similarity index 89% rename from .github/workflows/build_image.yaml rename to .github/workflows/build_container_image.yaml index 47dab58409d4..3c11ea3f0649 100644 --- a/.github/workflows/build_image.yaml +++ b/.github/workflows/build_container_image.yaml @@ -1,9 +1,17 @@ -name: Build Image -on: push +name: Build Container Image +on: + push: + branches: + - 'release*' + - anvil +concurrency: + group: docker-build-${{ github.ref }} + cancel-in-progress: true jobs: - test: - name: Build image + build: + name: Build container image runs-on: ubuntu-latest + if: github.repository_owner == 'galaxyproject' steps: - uses: actions/checkout@v2 # https://stackoverflow.com/questions/59810838/how-to-get-the-short-sha-for-the-github-workflow