Skip to content

Commit

Permalink
chore: Alter github workflow conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
TuukkaP committed Nov 22, 2024
1 parent 71beda3 commit 44812f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
type=ref,event=branch
- name: Log in to the Container registry
if: github.ref == 'refs/heads/main'
if: startsWith(github.ref, 'refs/tags/docker/v')
# v3.3.0 head SHA https://github.com/docker/login-action/commits/v3.3.0
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
Expand All @@ -63,7 +63,7 @@ jobs:
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75
with:
context: .
push: ${{ github.ref == 'refs/heads/main' }}
push: ${{ startsWith(github.ref, 'refs/tags/docker/v') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

jobs:
build-binaries:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-24.04
steps:
- name: Checkout
Expand Down

0 comments on commit 44812f1

Please sign in to comment.