Skip to content

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

chore: Login to Docker Hub in e2e CI workflow to avoid rate limiting (#47091)

Gildas Garcia2591a07a4fe9
diff --git a/.github/workflows/studio-e2e-test.yml b/.github/workflows/studio-e2e-test.yml
index 46e85ec2ae3..d25cb2e758c 100644
--- a/.github/workflows/studio-e2e-test.yml
+++ b/.github/workflows/studio-e2e-test.yml
@@ -23,7 +23,8 @@ jobs:
tests_ran: ${{ steps.filter.outputs.studio == 'true' }}
permissions:
- contents: write
+ contents: read
+ id-token: write
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
@@ -83,6 +84,18 @@ jobs:
if: steps.filter.outputs.studio == 'true'
run: rm -rf supabase && pnpm exec supabase init && mkdir supabase/functions
+ # Authenticate with AWS ECR to avoid rate limiting
+ - name: configure aws credentials
+ if: steps.filter.outputs.studio == 'true'
+ uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0
+ with:
+ role-to-assume: ${{ secrets.PROD_AWS_ROLE }}
+ aws-region: us-east-1
+ - uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
+ if: steps.filter.outputs.studio == 'true'
+ with:
+ registry: public.ecr.aws
+
- name: Pre-start diagnostics
run: |
docker ps -a