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 88
88
packer init stage2-nix-psql.pkr.hcl
89
89
GIT_SHA=${{github.sha}}
90
90
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
92
92
93
93
- name : Grab release version
94
94
id : process_release_version
Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ variable "git_sha" {
46
46
default = env (" GIT_SHA" )
47
47
}
48
48
49
+ variable "postgres_major_version" {
50
+ type = string
51
+ default = " "
52
+ }
53
+
49
54
packer {
50
55
required_plugins {
51
56
amazon = {
@@ -133,7 +138,8 @@ build {
133
138
134
139
provisioner "shell" {
135
140
environment_vars = [
136
- " GIT_SHA=${ var . git_sha } "
141
+ " GIT_SHA=${ var . git_sha } " ,
142
+ " POSTGRES_MAJOR_VERSION=${ var . postgres_major_version } "
137
143
]
138
144
script = " scripts/nix-provision.sh"
139
145
}
You can’t perform that action at this time.
0 commit comments