Skip to content

Commit 052eaab

Browse files
committed
fix: tags should comply with cnpg requirements
Signed-off-by: Niccolò Fei <[email protected]>
1 parent 8025e57 commit 052eaab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build-commitfest.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
# set up environment variables to be used across all the jobs
1616
env:
1717
REGISTRY: "ghcr.io/${{ github.repository_owner }}/postgresql-trunk"
18-
TAG: "commitfest-master"
18+
TAG: "${{ vars.PG_MAJOR }}-commitfest-master"
1919
BRANCH: "master"
2020

2121
defaults:
@@ -38,7 +38,7 @@ jobs:
3838
if: github.event.inputs.commitfest_id != '' && github.event.inputs.patch_id != ''
3939
run: |
4040
BRANCH="commitfest/${{ github.event.inputs.commitfest_id }}/${{ github.event.inputs.patch_id }}"
41-
TAG=${BRANCH////-}
41+
TAG="${{ vars.PG_MAJOR }}-${BRANCH////-}"
4242
echo "TAG=${TAG}" >> $GITHUB_ENV
4343
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
4444

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
extra_tag:
7-
description: "Image will be tagged as `dev-<gh_run_id>` (e.g dev-1234). With this field you can set an extra tag"
7+
description: "Use this field to set an extra tag (make sure it starts with the PG major)"
88
required: false
99
default: ""
1010
pg_repo:
@@ -19,7 +19,7 @@ on:
1919
# set up environment variables to be used across all the jobs
2020
env:
2121
REGISTRY: "ghcr.io/${{ github.repository_owner }}/postgresql-trunk"
22-
TAG: "dev-${{ github.run_number }}"
22+
TAG: "${{ vars.PG_MAJOR }}-${{ github.run_number }}"
2323

2424
defaults:
2525
run:

0 commit comments

Comments
 (0)