File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -82,11 +82,10 @@ jobs:
8282 packer build -var "git-head-version=${GIT_SHA}" -var "packer-execution-id=${GITHUB_RUN_ID}" -var-file="development-arm.vars.pkr.hcl" -var-file="common-nix.vars.pkr.hcl" -var "ansible_arguments=-e postgresql_major=${POSTGRES_MAJOR_VERSION}" amazon-arm64-nix.pkr.hcl
8383
8484 - name : Build AMI stage 2
85- env :
86- POSTGRES_MAJOR_VERSION : ${{ env.POSTGRES_MAJOR_VERSION }}
8785 run : |
8886 packer init stage2-nix-psql.pkr.hcl
8987 GIT_SHA=${{github.sha}}
88+ POSTGRES_MAJOR_VERSION=${{ env.POSTGRES_MAJOR_VERSION }}
9089 packer build -var "git_sha=${GIT_SHA}" -var "git-head-version=${GIT_SHA}" -var "packer-execution-id=${GITHUB_RUN_ID}" -var-file="development-arm.vars.pkr.hcl" -var-file="common-nix.vars.pkr.hcl" stage2-nix-psql.pkr.hcl
9190
9291 - name : Grab release version
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ postgres_major:
1111
1212# Full version strings for each major version
1313postgres_release :
14- postgres15 : " 15.8.1.003-staging-1 "
15- postgres16 : " 16.3.1.000-staging-1 "
14+ postgres15 : " 15.8.1.003-staging-2 "
15+ postgres16 : " 16.3.1.000-staging-2 "
1616
1717# Non Postgres Extensions
1818pgbouncer_release : " 1.19.0"
Original file line number Diff line number Diff line change 3333
3434 # Set psql_version and postgresql_version based on POSTGRES_MAJOR_VERSION
3535 case " ${POSTGRES_MAJOR_VERSION} " in
36- 15 )
36+ " 15 " )
3737 psql_version=" psql_15"
3838 postgresql_version=" postgresql15"
3939 ;;
40- 16 )
40+ " 16 " )
4141 psql_version=" psql_16"
4242 postgresql_version=" postgresql16"
4343 ;;
5555 --extra-vars " psql_version=${psql_version} " \
5656 --extra-vars " postgresql_version=${postgresql_version} " \
5757 --extra-vars " nix_secret_key=${NIX_SECRET_KEY} " \
58- --extra-vars " postgres_major_version =${POSTGRES_MAJOR_VERSION} " \
58+ --extra-vars " postgresql_major_version =${POSTGRES_MAJOR_VERSION} " \
5959 $ARGS
6060}
6161
You can’t perform that action at this time.
0 commit comments