Skip to content

Commit

Permalink
Update build-docker.yml
Browse files Browse the repository at this point in the history
Remove some unnecessary code.
  • Loading branch information
BenjaminRodenberg authored Feb 16, 2024
1 parent f16cfcf commit aaaaddc
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
description: branch to build the image from
options:
- develop
- master
push:
branches:
- develop
Expand All @@ -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
Expand Down

0 comments on commit aaaaddc

Please sign in to comment.