@@ -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
0 commit comments