File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 30
30
- name : Set PostgreSQL versions
31
31
id : set-versions
32
32
run : |
33
- VERSIONS=$(nix run nixpkgs#yq -- eval '.postgres_major[]' ansible/vars.yml | jq -R -s -c 'split("\n")[:-1]')
33
+ VERSIONS=$(nix run nixpkgs#yq -- '.postgres_major[]' ansible/vars.yml | nix run nixpkgs#jq -- -R -s -c 'split("\n")[:-1]')
34
34
echo "postgres_versions=$VERSIONS" >> $GITHUB_OUTPUT
35
35
36
36
build :
64
64
- name : Run checks if triggered manually
65
65
if : ${{ github.event_name == 'workflow_dispatch' }}
66
66
run : |
67
- SUFFIX=$(nix run nixpkgs#yq -- eval '.postgres_release["postgres${{ matrix.postgres_version }}"]' ansible/vars.yml | sed -E 's/[0-9\.]+(.*)$/\1/')
67
+ SUFFIX=$(nix run nixpkgs#yq -- '.postgres_release["postgres${{ matrix.postgres_version }}"]' ansible/vars.yml | sed -E 's/[0-9\.]+(.*)$/\1/')
68
68
if [[ -z $SUFFIX ]] ; then
69
69
echo "Version must include non-numeric characters if built manually."
70
70
exit 1
75
75
76
76
- name : Generate common-nix.vars.pkr.hcl
77
77
run : |
78
- PG_VERSION=$(nix run nixpkgs#yq -- eval '.postgres_release["postgres${{ matrix.postgres_version }}"]' ansible/vars.yml)
78
+ PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres${{ matrix.postgres_version }}"]' ansible/vars.yml)
79
79
echo "postgres-version = \"$PG_VERSION\"" > common-nix.vars.pkr.hcl
80
80
81
81
- name : Build AMI stage 1
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"
15
- postgres16 : " 16.3.1.000"
14
+ postgres15 : " 15.8.1.003-staging "
15
+ postgres16 : " 16.3.1.000-staging "
16
16
17
17
# Non Postgres Extensions
18
18
pgbouncer_release : " 1.19.0"
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ packer {
56
56
}
57
57
58
58
source "amazon-ebs" "ubuntu" {
59
- ami_name = " ${ var . ami_name } -${ var . postgres-version } -staging "
59
+ ami_name = " ${ var . ami_name } -${ var . postgres-version } "
60
60
instance_type = " c6g.4xlarge"
61
61
region = " ${ var . region } "
62
62
source_ami_filter {
You can’t perform that action at this time.
0 commit comments