Skip to content

Commit

Permalink
.github: Fix Tag/Push workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mrueg committed Jul 5, 2021
1 parent 4a3940f commit e79f024
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract branch from github ref - New Push
if: ${{ startsWith('refs/tags/v', github.ref) != true && github.event_name != 'pull_request' }}
if: ${{ startsWith(github.ref, 'refs/tags/v') != true && github.event_name != 'pull_request' }}
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

- name: Build and push - New Push
uses: docker/build-push-action@v2
if: ${{ startsWith('refs/tags/v', github.ref) != true && github.event_name != 'pull_request' }}
if: ${{ startsWith(github.ref, 'refs/tags/v') != true && github.event_name != 'pull_request' }}
with:
context: .
platforms: |
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
# Runs Go Releaser on Tag Event
ci-goreleaser-tag:
runs-on: ubuntu-latest
if: ${{ startsWith('refs/tags/v', github.ref) }}
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down

0 comments on commit e79f024

Please sign in to comment.