Code Monkey home page Code Monkey logo

fly-preview's Introduction

⚙️ Supabase Preview Deploy Action

About

This action deploys a Supabase Preview branch on Fly infrastructure.

⚠️ Experimental: This action is a WIP and may be deprecated in the future. Use at your own risk.

Usage

Setup this action and supabase CLI

steps:
  - uses: supabase/setup-cli@v1
    with:
      version: latest
  # We use sed to replace quotes, ie. key="value", to avoid double escaping env var.
  - run: supabase gen keys --project-ref <ref> --experimental | sed -E 's|^(.*)="(.*)"$|\1=\2|g' >> "$GITHUB_ENV"
    env:
      SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
  - uses: supabase/fly-preview@main

Connect locally to your preview branch

supabase link --project-ref <ref>
supabase start --preview

Inputs

The actions supports the following environment variable as inputs:

Name Type Description Default Required
FLY_API_TOKEN String API token to your Fly account true
NEXT_PUBLIC_SUPABASE_URL String Fly app hostname, ie. *.fly.dev true
FLY_ORGANIZATION_SLUG String Fly organization slug to deploy to personal false
SUPABASE_DB_PASSWORD String Postgres role password postgres false
SUPABASE_AUTH_JWT_SECRET String JWT secret for GoTrue service false
SUPABASE_AUTH_ANON_KEY String Signed JWT token for anon role false
SUPABASE_AUTH_SERVICE_ROLE_KEY String Signed JWT token for service_role false

fly-preview's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.