Skip to content

Commit 8cbce89

Browse files
committed
chore: remove the need of commitfest id
Signed-off-by: Jonathan Gonzalez V. <jonathan.abdiel@gmail.com>
1 parent e20133f commit 8cbce89

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/build-commitfest.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Container Images from Commitest patch
33
on:
44
workflow_dispatch:
55
inputs:
6-
commitfest_id:
7-
description: "ID of the Commitfest"
8-
required: false
96
patch_id:
107
description: "ID of the Patch"
118
required: false
@@ -50,7 +47,7 @@ jobs:
5047
fi
5148
5249
- name: Set commitfest branch and tag
53-
if: github.event.inputs.commitfest_id != '' && github.event.inputs.patch_id != ''
50+
if: github.event.inputs.patch_id != ''
5451
run: |
5552
BRANCH="cf/${{ github.event.inputs.patch_id }}"
5653
TAG="${{ env.PG_MAJOR }}-${BRANCH////-}"
@@ -84,13 +81,12 @@ jobs:
8481
steps:
8582
- name: Output summary
8683
run: |
87-
commitFestID=${{ github.event.inputs.commitfest_id }}
8884
commitFestPatchID=${{ github.event.inputs.patch_id }}
89-
commitFestURL="https://commitfest.postgresql.org/${commitFestID}/${commitFestPatchID}"
85+
commitFestURL="https://commitfest.postgresql.org/patch/${commitFestPatchID}"
9086
image="${{ needs.build-pg.outputs.pg_image }}"
9187
imageURL="https://${image}"
9288
echo "# Commitfest Image Build summary" >> $GITHUB_STEP_SUMMARY
93-
echo "**Commitfest Patch URL**: [$commitFestID / $commitFestPatchID]($commitFestURL)" >> $GITHUB_STEP_SUMMARY
89+
echo "**Commitfest Patch URL**: [$commitFestPatchID]($commitFestURL)" >> $GITHUB_STEP_SUMMARY
9490
echo "**Container Image**: [$image]($imageURL)" >> $GITHUB_STEP_SUMMARY
9591
echo "## CloudNativePG Cluster definition" >> $GITHUB_STEP_SUMMARY
9692
echo "You can create a cluster in CloudNativePG running this image:" >> $GITHUB_STEP_SUMMARY
@@ -99,7 +95,7 @@ jobs:
9995
echo "apiVersion: postgresql.cnpg.io/v1" >> $GITHUB_STEP_SUMMARY
10096
echo "kind: Cluster" >> $GITHUB_STEP_SUMMARY
10197
echo "metadata:" >> $GITHUB_STEP_SUMMARY
102-
echo " name: commitfest-$commitFestID-$commitFestPatchID" >> $GITHUB_STEP_SUMMARY
98+
echo " name: commitfest-$commitFestPatchID" >> $GITHUB_STEP_SUMMARY
10399
echo "spec:" >> $GITHUB_STEP_SUMMARY
104100
echo " imageName: $image" >> $GITHUB_STEP_SUMMARY
105101
echo " instances: 3" >> $GITHUB_STEP_SUMMARY

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ image.
3434
If you're interested in testing a PostgreSQL patch from a Commitfest in
3535
Kubernetes with CloudNativePG, you can fork this project on GitHub. Then, run
3636
the designated workflow called "Container Images from Commitfest patch" from the
37-
"Actions" menu, entering the Commitfest ID and patch ID.
37+
"Actions" menu, entering the Commitfest Patch ID.
3838

3939
The action summary provides all the details you need to effectively use the
4040
image.

0 commit comments

Comments
 (0)