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:
82
82
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
83
83
84
84
- name : Build AMI stage 2
85
- env :
86
- POSTGRES_MAJOR_VERSION : ${{ env.POSTGRES_MAJOR_VERSION }}
87
85
run : |
88
86
packer init stage2-nix-psql.pkr.hcl
89
87
GIT_SHA=${{github.sha}}
88
+ POSTGRES_MAJOR_VERSION=${{ env.POSTGRES_MAJOR_VERSION }}
90
89
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
91
90
92
91
- name : Grab release version
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ postgres_major:
11
11
12
12
# Full version strings for each major version
13
13
postgres_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 "
16
16
17
17
# Non Postgres Extensions
18
18
pgbouncer_release : " 1.19.0"
Original file line number Diff line number Diff line change 33
33
34
34
# Set psql_version and postgresql_version based on POSTGRES_MAJOR_VERSION
35
35
case " ${POSTGRES_MAJOR_VERSION} " in
36
- 15 )
36
+ " 15 " )
37
37
psql_version=" psql_15"
38
38
postgresql_version=" postgresql15"
39
39
;;
40
- 16 )
40
+ " 16 " )
41
41
psql_version=" psql_16"
42
42
postgresql_version=" postgresql16"
43
43
;;
55
55
--extra-vars " psql_version=${psql_version} " \
56
56
--extra-vars " postgresql_version=${postgresql_version} " \
57
57
--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} " \
59
59
$ARGS
60
60
}
61
61
You can’t perform that action at this time.
0 commit comments