File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 77
77
PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
78
78
PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
79
79
echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
80
- echo 'postgres_major_version = "'$POSTGRES_MAJOR_VERSION'"' >> common-nix.vars.pkr.hcl
81
- echo 'postgresql_major = "'$POSTGRES_MAJOR_VERSION'"' >> common-nix.vars.pkr.hcl
80
+ echo 'postgres-major-version = "'$POSTGRES_MAJOR_VERSION'"' >> common-nix.vars.pkr.hcl
81
+ # echo 'postgresql_major = "'$POSTGRES_MAJOR_VERSION'"' >> common-nix.vars.pkr.hcl
82
82
# Ensure there's a newline at the end of the file
83
83
echo "" >> common-nix.vars.pkr.hcl
84
84
Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ variable "postgres-version" {
21
21
default = " "
22
22
}
23
23
24
+ variable "postgres-major-version" {
25
+ type = string
26
+ default = " "
27
+ }
28
+
24
29
variable "git-head-version" {
25
30
type = string
26
31
default = " unknown"
@@ -124,7 +129,7 @@ build {
124
129
125
130
provisioner "shell" {
126
131
environment_vars = [
127
- " POSTGRES_MAJOR_VERSION=${ var . postgres_major_version } " ,
132
+ " POSTGRES_MAJOR_VERSION=${ var . postgres-major-version } " ,
128
133
" POSTGRES_SUPABASE_VERSION=${ var . postgres-version } " ,
129
134
" GIT_SHA=${ var . git_sha } "
130
135
]
You can’t perform that action at this time.
0 commit comments