Skip to content

Commit 253c652

Browse files
authored
Switch to branch-based instead of tag-based release (#68)
Signed-off-by: see-quick <maros.orsak159@gmail.com>
1 parent 2a0e25d commit 253c652

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ permissions:
1515

1616
jobs:
1717
release:
18-
if: ${{ startsWith(github.ref, 'refs/tags/') }}
18+
if: ${{ startsWith(github.ref, 'refs/heads/release-') }}
1919
uses: ./.github/workflows/reusable-build.yml
2020
with:
2121
containerTag: ${{ inputs.releaseVersion }}
22+
pushContainers: true
2223
secrets:
2324
QUAY_USER: ${{ secrets.QUAY_USER }}
2425
QUAY_PASS: ${{ secrets.QUAY_PASS }}

.github/workflows/reusable-build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
required: false
99
type: string
1010
default: 'latest'
11+
pushContainers:
12+
description: 'Force push containers (used by release workflow)'
13+
required: false
14+
type: boolean
15+
default: false
1116
secrets:
1217
QUAY_USER:
1318
required: false
@@ -59,7 +64,7 @@ jobs:
5964
name: Push Containers
6065
needs:
6166
- build-containers
62-
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
67+
if: ${{ github.ref == 'refs/heads/main' || inputs.pushContainers }}
6368
permissions:
6469
contents: read
6570
id-token: write

0 commit comments

Comments
 (0)