Skip to content

Commit

Permalink
chore: update commitfest branch name (#65)
Browse files Browse the repository at this point in the history
Closes #63 

Signed-off-by: Marco Nenciarini <[email protected]>
Signed-off-by: Jonathan Gonzalez V. <[email protected]>
Co-authored-by: Jonathan Gonzalez V. <[email protected]>
  • Loading branch information
mnencia and sxd authored Nov 27, 2024
1 parent f5c51b2 commit 818c776
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/build-commitfest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: Container Images from Commitest patch
on:
workflow_dispatch:
inputs:
commitfest_id:
description: "ID of the Commitfest"
required: false
patch_id:
description: "ID of the Patch"
required: false
Expand Down Expand Up @@ -50,9 +47,9 @@ jobs:
fi
- name: Set commitfest branch and tag
if: github.event.inputs.commitfest_id != '' && github.event.inputs.patch_id != ''
if: github.event.inputs.patch_id != ''
run: |
BRANCH="commitfest/${{ github.event.inputs.commitfest_id }}/${{ github.event.inputs.patch_id }}"
BRANCH="cf/${{ github.event.inputs.patch_id }}"
TAG="${{ env.PG_MAJOR }}-${BRANCH////-}"
echo "TAG=${TAG}" >> $GITHUB_ENV
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
Expand Down Expand Up @@ -84,13 +81,12 @@ jobs:
steps:
- name: Output summary
run: |
commitFestID=${{ github.event.inputs.commitfest_id }}
commitFestPatchID=${{ github.event.inputs.patch_id }}
commitFestURL="https://commitfest.postgresql.org/${commitFestID}/${commitFestPatchID}"
commitFestURL="https://commitfest.postgresql.org/patch/${commitFestPatchID}"
image="${{ needs.build-pg.outputs.pg_image }}"
imageURL="https://${image}"
echo "# Commitfest Image Build summary" >> $GITHUB_STEP_SUMMARY
echo "**Commitfest Patch URL**: [$commitFestID / $commitFestPatchID]($commitFestURL)" >> $GITHUB_STEP_SUMMARY
echo "**Commitfest Patch URL**: [$commitFestPatchID]($commitFestURL)" >> $GITHUB_STEP_SUMMARY
echo "**Container Image**: [$image]($imageURL)" >> $GITHUB_STEP_SUMMARY
echo "## CloudNativePG Cluster definition" >> $GITHUB_STEP_SUMMARY
echo "You can create a cluster in CloudNativePG running this image:" >> $GITHUB_STEP_SUMMARY
Expand All @@ -99,7 +95,7 @@ jobs:
echo "apiVersion: postgresql.cnpg.io/v1" >> $GITHUB_STEP_SUMMARY
echo "kind: Cluster" >> $GITHUB_STEP_SUMMARY
echo "metadata:" >> $GITHUB_STEP_SUMMARY
echo " name: commitfest-$commitFestID-$commitFestPatchID" >> $GITHUB_STEP_SUMMARY
echo " name: commitfest-$commitFestPatchID" >> $GITHUB_STEP_SUMMARY
echo "spec:" >> $GITHUB_STEP_SUMMARY
echo " imageName: $image" >> $GITHUB_STEP_SUMMARY
echo " instances: 3" >> $GITHUB_STEP_SUMMARY
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ image.
If you're interested in testing a PostgreSQL patch from a Commitfest in
Kubernetes with CloudNativePG, you can fork this project on GitHub. Then, run
the designated workflow called "Container Images from Commitfest patch" from the
"Actions" menu, entering the Commitfest ID and patch ID.
"Actions" menu, entering the Commitfest Patch ID.

The action summary provides all the details you need to effectively use the
image.
Expand Down

0 comments on commit 818c776

Please sign in to comment.