File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 7474
7575 - name : Generate common-nix.vars.pkr.hcl
7676 run : |
77- PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres${{ matrix.version }}"]' ansible/vars.yml)
77+ # If version contains orioledb-, handle it differently
78+ if [[ "${{ matrix.version }}" == *"orioledb-"* ]]; then
79+ PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release.postgresorioledb-17' ansible/vars.yml)
80+ else
81+ PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres${{ matrix.version }}"]' ansible/vars.yml)
82+ fi
7883 PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
7984 echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
8085 echo "" >> common-nix.vars.pkr.hcl
@@ -121,7 +126,7 @@ jobs:
121126 fi
122127
123128 # Get version differently based on version type
124- if [[ "$version" == "orioledb-17" ]]; then
129+ if [[ "$version" == * "orioledb-"* ]]; then
125130 PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release.postgresorioledb-17' ansible/vars.yml)
126131 else
127132 PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'$version'"]' ansible/vars.yml)
You can’t perform that action at this time.
0 commit comments