8000 chore: attempt different gpg keyserver · grmt/postgres@e220a5d · GitHub
[go: up one dir, main page]

Skip to content

Commit e220a5d

Browse files
pcncdarora
authored andcommitted
chore: attempt different gpg keyserver
1 parent c36fab2 commit e220a5d

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

.github/workflows/collect-u18-binaries.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- develop
77
- pcnc/pg-upgrade-fixes
88
paths:
9-
- '.github/workflows/ami-build-ubuntu-18.yml'
9+
- '.github/workflows/collect-u18-binaries.yml'
1010
- 'common.vars.pkr.hcl'
1111

1212
workflow_run:
@@ -137,25 +137,3 @@ jobs:
137137
- name: Upload pg binaries to s3 prod
138138
run: |
139139
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 {}

Dockerfile-u18

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
133133
# Add Postgres PPA
134134
ARG postgresql_gpg_key=B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
135135
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}" && \
137137
gpg --no-default-keyring --keyring /tmp/pgdg.key --export "${postgresql_gpg_key}" > /etc/apt/trusted.gpg.d/pgdg.gpg && \
138138
echo "deb https://apt-archive.postgresql.org/pub/repos/apt bionic-pgdg-archive main" > /etc/apt/sources.list.d/pgdg.list
139139

0 commit comments

Comments
 (0)
0