Skip to content

Commit 7dfc53c

Browse files
authored
Merge pull request #8 from ubicloud/update-config-rb-in-pr
Update config.rb when creating ubicloud PR
2 parents b1be17c + 966cd4e commit 7dfc53c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/postgres-vm-image.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,19 @@ jobs:
721721
echo "=== Updated entries ==="
722722
grep "${image_name}" prog/download_boot_image.rb || true
723723
724+
- name: Update config.rb
725+
run: |
726+
cd ubicloud
727+
version="${{ steps.collect.outputs.version }}"
728+
729+
# Update postgres_ubuntu_2204_version in config.rb
730+
sed -i -E "s|(override\s*:postgres_ubuntu_2204_version,\s*\")([^\"]+)(\")|\1${version}\3|" config.rb
731+
echo "Updated postgres_ubuntu_2204_version to ${version}"
732+
733+
# Show the change
734+
echo "=== Updated config.rb ==="
735+
grep "postgres_ubuntu_2204_version" config.rb
736+
724737
- name: Create migration file
725738
run: |
726739
cd ubicloud
@@ -859,6 +872,7 @@ jobs:
859872
--head "${branch_name}" \
860873
--title "Update postgres images to ${{ inputs.image_suffix }}" \
861874
--body "## Summary
875+
- Updates image version in \`config.rb\`
862876
- Updates boot image SHA256 hashes in \`prog/download_boot_image.rb\`
863877
- Adds migration to update AWS AMI IDs in \`pg_aws_ami\` table
864878

0 commit comments

Comments
 (0)