Build studio multiarch docker image #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build studio multiarch docker image | |
on: | |
# run this action every day at 04:00 UTC (Singapore noon) | |
schedule: | |
- cron: '0 4 * * 1' | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
timeout-minutes: 120 | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
context: '{{defaultContext}}' | |
file: apps/studio/Dockerfile | |
target: production | |
platforms: linux/amd64,linux/arm64 | |
tags: jingsam/supabase-studio:latest | |
cache-from: type=gha | |
cache-to: type=gha,mode=max |