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 3030 - name : Set PostgreSQL versions
3131 id : set-versions
3232 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]')
3434 echo "postgres_versions=$VERSIONS" >> $GITHUB_OUTPUT
3535
3636 build :
6464 - name : Run checks if triggered manually
6565 if : ${{ github.event_name == 'workflow_dispatch' }}
6666 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/')
6868 if [[ -z $SUFFIX ]] ; then
6969 echo "Version must include non-numeric characters if built manually."
7070 exit 1
7575
7676 - name : Generate common-nix.vars.pkr.hcl
7777 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)
7979 echo "postgres-version = \"$PG_VERSION\"" > common-nix.vars.pkr.hcl
8080
8181 - name : Build AMI stage 1
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ postgres_major:
1111
1212# Full version strings for each major version
1313postgres_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 "
1616
1717# Non Postgres Extensions
1818pgbouncer_release : " 1.19.0"
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ packer {
5656}
5757
5858source "amazon-ebs" "ubuntu" {
59- ami_name = " ${ var . ami_name } -${ var . postgres-version } -staging "
59+ ami_name = " ${ var . ami_name } -${ var . postgres-version } "
6060 instance_type = " c6g.4xlarge"
6161 region = " ${ var . region } "
6262 source_ami_filter {
You can’t perform that action at this time.
0 commit comments