Skip to content

Commit

Permalink
ci(ct-base): fix step if-conditions for branch names IQSS#8932
Browse files Browse the repository at this point in the history
Github context offers ".ref" but we need ".ref_name" to
match *just* the branch name.
  • Loading branch information
poikilotherm committed Nov 8, 2022
1 parent 22eb801 commit 7d4388e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/container_base_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
# Run anything below only if this is not a pull request.
# Accessing, pushing tags etc. to DockerHub will only succeed in upstream because secrets.

- if: ${{ github.event_name != 'pull_request' && github.ref == 'develop' }}
- if: ${{ github.event_name == 'push' && github.ref_name == 'develop' }}
name: Push description to DockerHub
uses: peter-evans/dockerhub-description@v3
with:
Expand All @@ -78,7 +78,7 @@ jobs:
name: Set up QEMU for multi-arch builds
uses: docker/setup-qemu-action@v2
- name: Re-set image tag based on branch
if: ${{ github.ref == 'master' }}
if: ${{ github.ref_name == 'master' }}
run: echo "IMAGE_TAG=release"
- if: ${{ github.event_name != 'pull_request' }}
name: Deploy multi-arch base container image to Docker Hub
Expand Down

0 comments on commit 7d4388e

Please sign in to comment.