File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -212,14 +212,26 @@ jobs:
212
212
needs : [build, merge_manifest]
213
213
strategy :
214
214
matrix :
215
- version : ${{ fromJson(needs.build.outputs.versions ) }}
215
+ image_tag : ${{ fromJson(needs.build.outputs.image_tags ) }}
216
216
runs-on : ubuntu-latest
217
217
outputs :
218
- version : ${{ steps.get_version.outputs.version }}
218
+ version : ${{ steps.get_version.outputs.version }}
219
219
steps :
220
+ - uses : actions/checkout@v3
221
+
222
+ - uses : DeterminateSystems/nix-installer-action@main
223
+
220
224
- id : get_version
221
225
run : |
222
- echo "version=${{ matrix.version }}" >> $GITHUB_OUTPUT
226
+ # Get the full version from vars.yml for orioledb
227
+ if [[ "${{ matrix.image_tag }}" == *"orioledb"* ]]; then
228
+ VERSION=$(nix run nixpkgs#yq -- '.postgres_release.postgresorioledb-17' ansible/vars.yml)
229
+ VERSION=$(echo $VERSION | tr -d '"') # Remove quotes
230
+ else
231
+ # For regular postgres, get version from the image tag
232
+ VERSION=$(echo "${{ matrix.image_tag }}" | sed 's|supabase/postgres:||')
233
+ fi
234
+ echo "version=$VERSION" >> $GITHUB_OUTPUT
223
235
224
236
publish :
225
237
needs : get_publish_version
You can’t perform that action at this time.
0 commit comments