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 74
74
75
75
- name : Generate common-nix.vars.pkr.hcl
76
76
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
78
83
PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
79
84
echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
80
85
echo "" >> common-nix.vars.pkr.hcl
@@ -121,7 +126,7 @@ jobs:
121
126
fi
122
127
123
128
# Get version differently based on version type
124
- if [[ "$version" == "orioledb-17" ]]; then
129
+ if [[ "$version" == * "orioledb-"* ]]; then
125
130
PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release.postgresorioledb-17' ansible/vars.yml)
126
131
else
127
132
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