Skip to content

Commit 761d019

Browse files
committed
chore: get version formatted to pass to mirror.yml
1 parent 2a5b6a4 commit 761d019

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

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

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,23 @@ jobs:
207207
SLACK_MESSAGE: "Building Postgres image failed for version ${{ matrix.version }}"
208208
SLACK_FOOTER: ""
209209

210-
publish:
210+
get_publish_version:
211211
needs: [build, merge_manifest]
212212
strategy:
213213
matrix:
214214
image_tag: ${{ fromJson(needs.build.outputs.image_tags) }}
215+
runs-on: ubuntu-latest
216+
outputs:
217+
version: ${{ steps.get_version.outputs.version }}
218+
steps:
219+
- id: get_version
220+
run: |
221+
VERSION=$(echo "${{ matrix.image_tag }}" | sed 's|supabase/postgres:||')
222+
echo "publish_version=$VERSION" >> $GITHUB_OUTPUT
223+
224+
publish:
225+
needs: get_puglixh_version
215226
uses: ./.github/workflows/mirror.yml
216227
with:
217-
version: ${{ replace(matrix.image_tag, 'supabase/postgres:', '') }}
228+
version: ${{ needs.get_version.outputs.publish_version }}
218229
secrets: inherit

0 commit comments

Comments
 (0)