Skip to content

Commit

Permalink
chore: get version formatted to pass to mirror.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose committed Dec 16, 2024
1 parent 2a5b6a4 commit 761d019
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/dockerhub-release-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,23 @@ jobs:
SLACK_MESSAGE: "Building Postgres image failed for version ${{ matrix.version }}"
SLACK_FOOTER: ""

publish:
get_publish_version:
needs: [build, merge_manifest]
strategy:
matrix:
image_tag: ${{ fromJson(needs.build.outputs.image_tags) }}
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- id: get_version
run: |
VERSION=$(echo "${{ matrix.image_tag }}" | sed 's|supabase/postgres:||')
echo "publish_version=$VERSION" >> $GITHUB_OUTPUT
publish:
needs: get_puglixh_version
uses: ./.github/workflows/mirror.yml
with:
version: ${{ replace(matrix.image_tag, 'supabase/postgres:', '') }}
version: ${{ needs.get_version.outputs.publish_version }}
secrets: inherit

0 comments on commit 761d019

Please sign in to comment.