Skip to content

Commit c07119c

Browse files
committed
fix: adjustments to build scripts
1 parent c23c2a6 commit c07119c

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/ami-release-nix.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

ansible/vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ postgres_major:
1111

1212
# Full version strings for each major version
1313
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"
1616

1717
# Non Postgres Extensions
1818
pgbouncer_release: "1.19.0"

scripts/nix-provision.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ EOF
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
;;
@@ -55,7 +55,7 @@ EOF
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

0 commit comments

Comments
 (0)