Skip to content

Commit

Permalink
Merge pull request #196 from precice/disable-docker-build-master
Browse files Browse the repository at this point in the history
Disable build-docker workflow on push to master
  • Loading branch information
BenjaminRodenberg authored Feb 19, 2024
2 parents 536d385 + aaaaddc commit 8f943a1
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ on:
description: branch to build the image from
options:
- develop
- master
push:
branches:
- develop
- master


jobs:
Expand All @@ -33,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
Expand Down

0 comments on commit 8f943a1

Please sign in to comment.