File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 8888 packer init stage2-nix-psql.pkr.hcl
8989 GIT_SHA=${{github.sha}}
9090 POSTGRES_MAJOR_VERSION=${{ env.POSTGRES_MAJOR_VERSION }}
91- 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+ packer build -var "git_sha=${GIT_SHA}" -var "git-head-version=${GIT_SHA}" -var "packer-execution-id=${GITHUB_RUN_ID}" -var "postgres_major_version=${POSTGRES_MAJOR_VERSION}" -var -file="development-arm.vars.pkr.hcl" -var-file="common-nix.vars.pkr.hcl" stage2-nix-psql.pkr.hcl
9292
9393 - name : Grab release version
9494 id : process_release_version
Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ variable "git_sha" {
4646 default = env (" GIT_SHA" )
4747}
4848
49+ variable "postgres_major_version" {
50+ type = string
51+ default = " "
52+ }
53+
4954packer {
5055 required_plugins {
5156 amazon = {
@@ -133,7 +138,8 @@ build {
133138
134139 provisioner "shell" {
135140 environment_vars = [
136- " GIT_SHA=${ var . git_sha } "
141+ " GIT_SHA=${ var . git_sha } " ,
142+ " POSTGRES_MAJOR_VERSION=${ var . postgres_major_version } "
137143 ]
138144 script = " scripts/nix-provision.sh"
139145 }
You can’t perform that action at this time.
0 commit comments