Skip to content

Commit

Permalink
chore: mirror postgrest image on version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Jul 18, 2024
1 parent 91a96e5 commit becc890
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/mirror-postgrest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Mirror PostgREST

on:
push:
branches:
- develop
paths:
- ".github/workflows/mirror-postgrest.yml"
- "common.vars*"

jobs:
version:
runs-on: ubuntu-latest
outputs:
postgrest_release: ${{ steps.args.outputs.result }}
steps:
- uses: actions/checkout@v4
- id: args
uses: mikefarah/yq@master
with:
cmd: yq '.postgrest_release' 'ansible/vars.yml'

mirror:
needs:
- version
uses: supabase/cli/.github/workflows/mirror-image.yml@main
with:
image: postgrest/postgrest:v${{ needs.version.outputs.postgrest_release }}
secrets: inherit

0 comments on commit becc890

Please sign in to comment.