Skip to content

Commit

Permalink
Merge pull request #168 from precice/BenjaminRodenberg-hotfix-no-dock…
Browse files Browse the repository at this point in the history
…er-release

Disable build-docker workflow on push to master
  • Loading branch information
BenjaminRodenberg authored Feb 19, 2024
2 parents 8b76fe2 + 38927cd commit fee4d4b
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 container from
options:
- develop
- master
push:
branches:
- develop
- master

jobs:
build-and-release-docker-image:
Expand All @@ -34,15 +32,9 @@ jobs:
- name: Set PYTHON_BINDINGS_REF and the TAG depending on branch
shell: bash
run: |
if [[ '${{ env.ADAPTER_REF }}' == 'master' ]]; then
echo "PYTHON_BINDINGS_REF=latest" >> "$GITHUB_ENV"
echo "TAG=latest" >> "$GITHUB_ENV"
echo "Building TAG: latest"
else
echo "PYTHON_BINDINGS_REF=${{ env.ADAPTER_REF }}" >> "$GITHUB_ENV"
echo "TAG=${{ env.ADAPTER_REF }}" >> "$GITHUB_ENV"
echo "Building TAG: ${{ env.ADAPTER_REF }}"
fi
echo "PYTHON_BINDINGS_REF=${{ env.ADAPTER_REF }}" >> "$GITHUB_ENV"
echo "TAG=${{ env.ADAPTER_REF }}" >> "$GITHUB_ENV"
echo "Building TAG: ${{ env.ADAPTER_REF }}"
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
Expand Down

0 comments on commit fee4d4b

Please sign in to comment.