From f16cfcf74ab8a8c782e19dd336526440c3648d73 Mon Sep 17 00:00:00 2001 From: Gerasimos Chourdakis Date: Tue, 13 Feb 2024 10:03:43 +0100 Subject: [PATCH 1/2] Disable build-docker workflow on push to master --- .github/workflows/build-docker.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index ea12b8cd..375423ea 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -12,7 +12,6 @@ on: push: branches: - develop - - master jobs: From aaaaddc498e8b35af8a74a5c13610112ef04f4c0 Mon Sep 17 00:00:00 2001 From: Benjamin Rodenberg Date: Fri, 16 Feb 2024 10:33:13 +0100 Subject: [PATCH 2/2] Update build-docker.yml Remove some unnecessary code. --- .github/workflows/build-docker.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 375423ea..37881853 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -8,7 +8,6 @@ on: description: branch to build the image from options: - develop - - master push: branches: - develop @@ -32,15 +31,9 @@ jobs: - name: Set PRECICE_TAG and the TAG depending on branch shell: bash run: | - if [[ '${{ env.BINDINGS_REF }}' == 'master' ]]; then - echo "PRECICE_TAG=latest" >> "$GITHUB_ENV" - echo "TAG=latest" >> "$GITHUB_ENV" - echo "Building TAG: latest" - else - echo "PRECICE_TAG=${{ env.BINDINGS_REF }}" >> "$GITHUB_ENV" - echo "TAG=${{ env.BINDINGS_REF }}" >> "$GITHUB_ENV" - echo "Building TAG: ${{ env.BINDINGS_REF }}" - fi + echo "PRECICE_TAG=${{ env.BINDINGS_REF }}" >> "$GITHUB_ENV" + echo "TAG=${{ env.BINDINGS_REF }}" >> "$GITHUB_ENV" + echo "Building TAG: ${{ env.BINDINGS_REF }}" - name: Checkout Repository uses: actions/checkout@v2 - name: Set up Docker Buildx