Skip to content

Commit 4dbac71

Browse files
committed
chore: matrix on version and arch
1 parent 2c94c9c commit 4dbac71

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ jobs:
185185
strategy:
186186
matrix:
187187
image_tag: ${{ fromJson(needs.build.outputs.image_tags) }}
188+
version: ${{ fromJson(needs.build.outputs.versions) }}
188189
runs-on: ubuntu-latest
189190
steps:
190191
- uses: docker/setup-buildx-action@v3
@@ -211,17 +212,14 @@ jobs:
211212
needs: [build, merge_manifest]
212213
strategy:
213214
matrix:
214-
image_tag: ${{ fromJson(needs.build.outputs.image_tags) }}
215+
version: ${{ fromJson(needs.build.outputs.versions) }}
215216
runs-on: ubuntu-latest
216217
outputs:
217218
version: ${{ steps.get_version.outputs.version }}
218219
steps:
219220
- id: get_version
220221
run: |
221-
VERSION=$(echo "${{ matrix.image_tag }}" | sed 's|supabase/postgres:||')
222-
# Changed to match the output name expected by the publish job
223-
echo "Extracted version: $VERSION"
224-
echo "version=$VERSION" >> $GITHUB_OUTPUT
222+
echo "version=${{ matrix.version }}" >> $GITHUB_OUTPUT
225223
226224
publish:
227225
needs: get_publish_version

0 commit comments

Comments
 (0)