Skip to content

Commit d656ac4

Browse files
Trigger on version tag (#11)
Co-authored-by: Andrii Soldatenko <andrii.soldatenko@gmail.com>
1 parent 5a18a14 commit d656ac4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ name: CI
22

33
on:
44
push:
5+
tags:
6+
- "v*"
57
branches:
68
- main
7-
- release-*
89
pull_request:
910
branches:
1011
- "*"
@@ -21,6 +22,7 @@ jobs:
2122
tests:
2223
name: Run unit tests
2324
runs-on: ubuntu-latest
25+
if: github.ref_type != 'tag'
2426
steps:
2527
- name: Checkout
2628
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -35,6 +37,7 @@ jobs:
3537
linting:
3638
name: Run linting
3739
runs-on: ubuntu-latest
40+
if: github.ref_type != 'tag'
3841
steps:
3942
- name: Checkout
4043
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -55,6 +58,7 @@ jobs:
5558
markdown-lint:
5659
name: Lint markdown files
5760
runs-on: ubuntu-latest
61+
if: github.ref_type != 'tag'
5862
steps:
5963
- name: Checkout
6064
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

hack/build/ci/prepare-build-variables.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ createDockerImageTag() {
1515
}
1616

1717
createDockerImageLabels() {
18-
if [[ "${GITHUB_REF_TYPE}" != "tag" ]] && [[ ! "${GITHUB_REF_NAME}" =~ ^release-* ]]; then
18+
if [[ "${GITHUB_REF_TYPE}" != "tag" ]] && [[ "${GITHUB_REF_NAME}" != "main" ]]; then
1919
echo "quay.expires-after=10d"
2020
fi
2121

0 commit comments

Comments
 (0)