File tree Expand file tree Collapse file tree 2 files changed +2
-24
lines changed Expand file tree Collapse file tree 2 files changed +2
-24
lines changed Original file line number Diff line number Diff line change 6
6
- develop
7
7
- pcnc/pg-upgrade-fixes
8
8
paths :
9
- - ' .github/workflows/ami-build-ubuntu-18 .yml'
9
+ - ' .github/workflows/collect-u18-binaries .yml'
10
10
- ' common.vars.pkr.hcl'
11
11
12
12
workflow_run :
@@ -137,25 +137,3 @@ jobs:
137
137
- name : Upload pg binaries to s3 prod
138
138
run : |
139
139
aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/18.04.tar.gz
140
-
141
- - name : Deregister image
142
- if : ${{ always() }}
143
- continue-on-error : true
144
- run : |
145
- IMAGE_IDS=$(aws ec2 describe-images --filters "Name=name,Values=builder-supabase-postgres-u18-*" --query "Images[] .ImageId" --output text)
146
- for IMAGE_ID in $IMAGE_IDS; do
147
- SNAPSHOTS=$(aws ec2 describe-images --image-ids $IMAGE_ID --query "Images[*].BlockDeviceMappings[*].Ebs.SnapshotId" --output text)
148
-
149
- echo "Deregistering image $IMAGE_ID"
150
- aws ec2 deregister-image --image-id $IMAGE_ID
151
-
152
- for SNAPSHOT in $SNAPSHOTS; do
153
- echo "Deleting snapshot $SNAPSHOT"
154
- aws ec2 delete-snapshot --snapshot-id $SNAPSHOT
155
- done
156
- done
157
-
158
- - name : Cleanup resources on build cancellation
159
- if : ${{ cancelled() }}
160
- run : |
161
- aws ec2 describe-instances --filters "Name=tag:packerExecutionId,Values=u18-${GITHUB_RUN_ID}" --query "Reservations[].Instances[].InstanceId" --output text | xargs -I {} aws ec2 terminate-instances --instance-ids {}
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
133
133
# Add Postgres PPA
134
134
ARG postgresql_gpg_key=B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
135
135
RUN mkdir -p /root/.gnupg && chmod 700 /root/.gnupg && \
136
- gpg --recv-keys --no-default-keyring --keyring /tmp/pgdg.key --keyserver pgp.mit.edu --recv-keys "${postgresql_gpg_key}" && \
136
+ gpg --recv-keys --no-default-keyring --keyring /tmp/pgdg.key --keyserver keyserver.ubuntu.com --recv-keys "${postgresql_gpg_key}" && \
137
137
gpg --no-default-keyring --keyring /tmp/pgdg.key --export "${postgresql_gpg_key}" > /etc/apt/trusted.gpg.d/pgdg.gpg && \
138
138
echo "deb https://apt-archive.postgresql.org/pub/repos/apt bionic-pgdg-archive main" > /etc/apt/sources.list.d/pgdg.list
139
139
You can’t perform that action at this time.
0 commit comments