Skip to content

Commit 426e478

Browse files
committed
fix: remove -x86 from ami naming scheme for historical consistency
1 parent f894d32 commit 426e478

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/ami-release-nix.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,13 @@ jobs:
4646
vars_file: development-arm.vars.pkr.hcl
4747
instance_type: c6g.4xlarge
4848
nix_system: aarch64-linux
49-
ami_name: supabase-postgres
5049
ami_arch_filter: arm64
5150
- name: amd64
5251
runner: blacksmith-2vcpu-ubuntu-2404
5352
packer_template: amazon-amd64-nix.pkr.hcl
5453
vars_file: development-x86.vars.pkr.hcl
5554
instance_type: c6i.4xlarge
5655
nix_system: x86_64-linux
57-
ami_name: supabase-postgres-x86
5856
ami_arch_filter: x86_64
5957
runs-on: ${{ matrix.arch.runner }}
6058
timeout-minutes: 150
@@ -114,7 +112,7 @@ jobs:
114112
if [ -z "$STAGE1_AMI_ID" ] || [ "$STAGE1_AMI_ID" = "None" ]; then
115113
echo "Did not find stage1 AMI - building it"
116114
nix run github:supabase/postgres/${GIT_SHA}#packer -- init ${{ matrix.arch.packer_template }}
117-
nix run github:supabase/postgres/${GIT_SHA}#packer -- build -var "git-head-version=${GIT_SHA}" -var "packer-execution-id=${EXECUTION_ID}" -var-file="${{ matrix.arch.vars_file }}" -var-file="common-nix.vars.pkr.hcl" -var "ansible_arguments=-e postgresql_major=${POSTGRES_MAJOR_VERSION}" -var "region=us-east-1" -var 'ami_regions=["us-east-1"]' -var "ami_name=${{ matrix.arch.ami_name }}-${{ matrix.arch.name }}" ${{ matrix.arch.packer_template }}
115+
nix run github:supabase/postgres/${GIT_SHA}#packer -- build -var "git-head-version=${GIT_SHA}" -var "packer-execution-id=${EXECUTION_ID}" -var-file="${{ matrix.arch.vars_file }}" -var-file="common-nix.vars.pkr.hcl" -var "ansible_arguments=-e postgresql_major=${POSTGRES_MAJOR_VERSION}" -var "region=us-east-1" -var 'ami_regions=["us-east-1"]' -var "ami_name=supabase-postgres-${{ matrix.arch.name }}" ${{ matrix.arch.packer_template }}
118116
STAGE1_AMI_ID=$(aws ec2 describe-images \
119117
--region "$REGION" \
120118
--owners self \
@@ -141,7 +139,7 @@ jobs:
141139
run: |
142140
GIT_SHA=${{github.sha}}
143141
nix run github:supabase/postgres/${GIT_SHA}#packer -- init stage2-nix-psql.pkr.hcl
144-
nix run github:supabase/postgres/${GIT_SHA}#packer -- build -var "git_sha=${GIT_SHA}" -var "git-head-version=${GIT_SHA}" -var "packer-execution-id=${EXECUTION_ID}" -var "postgres_major_version=${POSTGRES_MAJOR_VERSION}" -var "source_ami=${STAGE1_AMI_ID}" -var-file="${{ matrix.arch.vars_file }}" -var-file="common-nix.vars.pkr.hcl" -var "region=us-east-1" -var "instance_type=${{ matrix.arch.instance_type }}" -var "ami_name=${{ matrix.arch.ami_name }}" stage2-nix-psql.pkr.hcl
142+
nix run github:supabase/postgres/${GIT_SHA}#packer -- build -var "git_sha=${GIT_SHA}" -var "git-head-version=${GIT_SHA}" -var "packer-execution-id=${EXECUTION_ID}" -var "postgres_major_version=${POSTGRES_MAJOR_VERSION}" -var "source_ami=${STAGE1_AMI_ID}" -var-file="${{ matrix.arch.vars_file }}" -var-file="common-nix.vars.pkr.hcl" -var "region=us-east-1" -var "instance_type=${{ matrix.arch.instance_type }}" -var "ami_name=supabase-postgres" stage2-nix-psql.pkr.hcl
145143
146144
- name: Grab release version
147145
id: process_release_version

ansible/vars.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ postgres_major:
1010

1111
# Full version strings for each major version
1212
postgres_release:
13-
postgresorioledb-17: "17.6.0.064-orioledb-x-11"
14-
postgres17: "17.6.1.107-x-11"
15-
postgres15: "15.14.1.107-x-11"
13+
postgresorioledb-17: "17.6.0.064-orioledb-x-12"
14+
postgres17: "17.6.1.107-x-12"
15+
postgres15: "15.14.1.107-x-12"
1616

1717
# Non Postgres Extensions
1818
pgbouncer_release: 1.25.1

0 commit comments

Comments
 (0)