Skip to content

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

Mirror studio image to ECR (#8372)

Han Qiaoc4fe625c95a4
diff --git a/.github/workflows/publish_docker_hub.yml b/.github/workflows/publish_docker_hub.yml
deleted file mode 100644
index a3aecce6d10..00000000000
--- a/.github/workflows/publish_docker_hub.yml
+++ /dev/null
@@ -1,35 +0,0 @@
-name: Publish to Docker Hub
-
-on:
- push:
- branches:
- - studio
- paths:
- - 'studio/**'
- workflow_dispatch:
-
-jobs:
- publish:
- name: Publish to Docker Hub
- runs-on: ubuntu-20.04
- steps:
- - uses: actions/checkout@v2
-
- - uses: docker/setup-qemu-action@v1
- with:
- platforms: amd64,arm64
-
- - uses: docker/setup-buildx-action@v1
-
- - uses: docker/login-action@v1
- with:
- username: ${{ secrets.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_PASSWORD }}
-
- - uses: docker/build-push-action@v2
- with:
- context: studio
- platforms: linux/amd64,linux/arm64
- push: true
- tags: supabase/studio:latest
- target: production
diff --git a/.github/workflows/publish_image.yml b/.github/workflows/publish_image.yml
new file mode 100644
index 00000000000..bdb03424cf8
--- /dev/null
+++ b/.github/workflows/publish_image.yml
@@ -0,0 +1,44 @@
+name: Publish to Image Registry
+
+on:
+ push:
+ branches:
+ - studio
+ paths:
+ - 'studio/**'
+ workflow_dispatch:
+
+jobs:
+ publish:
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v3
+
+ - uses: docker/setup-qemu-action@v2
+ with:
+ platforms: amd64,arm64
+
+ - uses: docker/setup-buildx-action@v2
+
+ - name: Login to DockerHub
+ uses: docker/login-action@v2
+ with:
+ username: ${{ secrets.DOCKER_USERNAME }}
+ password: ${{ secrets.DOCKER_PASSWORD }}
+
+ - name: Login to ECR
+ uses: docker/login-action@v2
+ with:
+ registry: public.ecr.aws
+ username: ${{ secrets.PROD_ACCESS_KEY_ID }}
+ password: ${{ secrets.PROD_SECRET_ACCESS_KEY }}
+
+ - uses: docker/build-push-action@v3
+ with:
+ context: studio
+ platforms: linux/amd64,linux/arm64
+ push: true
+ tags: |
+ supabase/studio:latest
+ public.ecr.aws/t3w2s2c9/studio:latest
+ target: production