Skip to content

Commit c2af3ef

Browse files
committed
fix: adjust DefaultImageName
Signed-off-by: Niccolò Fei <[email protected]>
1 parent 02b80c3 commit c2af3ef

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

.github/workflows/build-commitfest.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
- name: Generated images
8080
id: images
8181
run: |
82-
echo "IMAGES=$(echo '${{ steps.build.outputs.metadata }}' | jq -c '.[]."image.name"')" >> $GITHUB_ENV
82+
echo "IMAGES=$(echo '${{ steps.build.outputs.metadata }}' | jq -r '.[]."image.name"')" >> $GITHUB_ENV
8383
8484
generate-summary:
8585
name: Commitfest Image Build summary
@@ -92,8 +92,8 @@ jobs:
9292
commitFestPatchID=${{ github.event.inputs.patch_id }}
9393
commitFestURL="https://commitfest.postgresql.org/patch/${commitFestPatchID}"
9494
image="${{ needs.build-pg.outputs.images }}"
95-
images_list="$(echo $images | jq -r | tr ' ' '\n' | sed 's/^/https:\/\//')"
96-
standardImage="$(echo $images | jq -r | grep standard)"
95+
images_list="$(echo $images | tr ' ' '\n' | sed 's/^/https:\/\//')"
96+
standardImage="$(echo $images | tr ' ' '\n' | grep standard)"
9797
9898
echo "# Commitfest Image Build summary" >> $GITHUB_STEP_SUMMARY
9999
echo "**Commitfest Patch URL**: [$commitFestPatchID]($commitFestURL)" >> $GITHUB_STEP_SUMMARY

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
- name: Generated images
7979
id: images
8080
run: |
81-
echo "IMAGES=$(echo '${{ steps.build.outputs.metadata }}' | jq -c '.[]."image.name"')" >> $GITHUB_ENV
81+
echo "IMAGES=$(echo '${{ steps.build.outputs.metadata }}' | jq -r '.[]."image.name"')" >> $GITHUB_ENV
8282
8383
generate-summary:
8484
name: PostgreSQL Image Build summary
@@ -90,8 +90,8 @@ jobs:
9090
run: |
9191
pg_major="${{ needs.build-pg.outputs.pg_major }}"
9292
images="${{ needs.build-pg.outputs.images }}"
93-
images_list="$(echo $images | jq -r | tr ' ' '\n' | sed 's/^/https:\/\//')"
94-
standardImage="$(echo $images | jq -r | grep standard)"
93+
images_list="$(echo $images | tr ' ' '\n' | sed 's/^/https:\/\//')"
94+
standardImage="$(echo $images | tr ' ' '\n' | grep standard)"
9595
9696
echo "# PostgreSQL Image Build summary" >> $GITHUB_STEP_SUMMARY
9797
echo "Here's the list of Container Images that have been built:" >> $GITHUB_STEP_SUMMARY

.github/workflows/continuous-delivery.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
- name: Generated images
8181
id: images
8282
run: |
83-
echo "PG_IMAGE=$(echo '${{ steps.build.outputs.metadata }}' | jq -c '.["standard"].["image.name"]' | grep -oP '[^,]*\d{12}[^,]*')" >> $GITHUB_ENV
83+
echo "PG_IMAGE=$(echo '${{ steps.build.outputs.metadata }}' | jq -r '.["standard"].["image.name"]' | grep -oP '[^,]*\d{12}[^,]*')" >> $GITHUB_ENV
8484
8585
call-reusable-e2e:
8686
if: github.event_name == 'schedule'

.github/workflows/reusable-e2e.yml

+5
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ jobs:
127127
docker push $E2E_PRE_ROLLING_UPDATE_IMG
128128
echo "E2E_PRE_ROLLING_UPDATE_IMG=$E2E_PRE_ROLLING_UPDATE_IMG" >> $GITHUB_ENV
129129
130+
- name: Setting up default versions
131+
run: |
132+
# Update pkg/versions/versions.go
133+
sed -i '/DefaultImageName *=/s@".*"@"'"${{ inputs.postgres_img }}"'"@' pkg/versions/versions.go
134+
130135
- name: Run Kind End-to-End tests
131136
run: make e2e-test-kind
132137

0 commit comments

Comments
 (0)