Skip to content

Commit 16788ef

Browse files
committed
chore: try to account for orioledb version issue
1 parent 4dbac71 commit 16788ef

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/dockerhub-release-matrix.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,26 @@ jobs:
212212
needs: [build, merge_manifest]
213213
strategy:
214214
matrix:
215-
version: ${{ fromJson(needs.build.outputs.versions) }}
215+
image_tag: ${{ fromJson(needs.build.outputs.image_tags) }}
216216
runs-on: ubuntu-latest
217217
outputs:
218-
version: ${{ steps.get_version.outputs.version }}
218+
version: ${{ steps.get_version.outputs.version }}
219219
steps:
220+
- uses: actions/checkout@v3
221+
222+
- uses: DeterminateSystems/nix-installer-action@main
223+
220224
- id: get_version
221225
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
223235
224236
publish:
225237
needs: get_publish_version

0 commit comments

Comments
 (0)