Skip to content

Commit

Permalink
ci: Only build >=1.27 and prevent unnecssary rebuilds of 1.3x images (#…
Browse files Browse the repository at this point in the history
…19)

Noticed that 1.3x images were always being unnecessarily rebuilt
due to dodgy image tag regex.

Also no need to build images for anything older than 1.27 patch releases.
  • Loading branch information
jimmidyson authored Jun 27, 2024
1 parent a670720 commit 0c02512
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/k8s-repo-tag-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: |
echo "tags=$(
gh api --cache 0s --paginate /repos/${{ github.repository }}/tags | \
jq -r 'map(select(.name | test("^v1.2[2-9].[0-9]+$")))[].name' | \
jq -r 'map(select(.name | test("^v1.(2[7-9]|[3-9][0-9]).[0-9]+$")))[].name' | \
tr '\n' ' '
)" >> $GITHUB_OUTPUT
env:
Expand All @@ -34,7 +34,7 @@ jobs:
run: |
echo "tags=$(
gh api --cache 0s --paginate /repos/${{ github.repository }}/tags | \
jq -r 'map(select(.name | test("^v1.(2[2-9]|[3-9][0-9]).[0-9]+$")))[].name' | \
jq -r 'map(select(.name | test("^v1.(2[7-9]|[3-9][0-9]).[0-9]+$")))[].name' | \
tr '\n' ' '
)" >> $GITHUB_OUTPUT
env:
Expand Down

0 comments on commit 0c02512

Please sign in to comment.