Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: add image mirror job

Qiao Han3a068766724a
diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml
new file mode 100644
index 00000000000..bacadccbf1e
--- /dev/null
+++ b/.github/workflows/mirror.yml
@@ -0,0 +1,33 @@
+name: Mirror Image
+
+on:
+ workflow_dispatch:
+ inputs:
+ version:
+ description: "Image tag"
+ required: true
+ type: string
+
+jobs:
+ mirror:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ packages: write
+ steps:
+ - uses: docker/login-action@v2
+ with:
+ registry: public.ecr.aws
+ username: ${{ secrets.PROD_ACCESS_KEY_ID }}
+ password: ${{ secrets.PROD_SECRET_ACCESS_KEY }}
+ - uses: docker/login-action@v2
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+ - uses: akhilerm/[email protected]
+ with:
+ src: docker.io/supabase/studio:${{ inputs.version }}
+ dst: |
+ public.ecr.aws/supabase/studio:${{ inputs.version }}
+ ghcr.io/supabase/studio:${{ inputs.version }}