From 5d50b259b7892d0be9ecfb140c2990fad672e1b6 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Tue, 4 Jun 2024 00:42:07 -0700 Subject: [PATCH] Create fly-direct.yml --- .github/workflows/fly-direct.yml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/fly-direct.yml diff --git a/.github/workflows/fly-direct.yml b/.github/workflows/fly-direct.yml new file mode 100644 index 0000000..f719efe --- /dev/null +++ b/.github/workflows/fly-direct.yml @@ -0,0 +1,39 @@ +name: Fly Deploy Direct +on: + schedule: + - cron: '0 * * * *' + +env: + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + BULL_AUTH_KEY: ${{ secrets.BULL_AUTH_KEY }} + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} + HOST: ${{ secrets.HOST }} + LLAMAPARSE_API_KEY: ${{ secrets.LLAMAPARSE_API_KEY }} + LOGTAIL_KEY: ${{ secrets.LOGTAIL_KEY }} + POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }} + POSTHOG_HOST: ${{ secrets.POSTHOG_HOST }} + NUM_WORKERS_PER_QUEUE: ${{ secrets.NUM_WORKERS_PER_QUEUE }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + PLAYWRIGHT_MICROSERVICE_URL: ${{ secrets.PLAYWRIGHT_MICROSERVICE_URL }} + PORT: ${{ secrets.PORT }} + REDIS_URL: ${{ secrets.REDIS_URL }} + SCRAPING_BEE_API_KEY: ${{ secrets.SCRAPING_BEE_API_KEY }} + SUPABASE_ANON_TOKEN: ${{ secrets.SUPABASE_ANON_TOKEN }} + SUPABASE_SERVICE_TOKEN: ${{ secrets.SUPABASE_SERVICE_TOKEN }} + SUPABASE_URL: ${{ secrets.SUPABASE_URL }} + TEST_API_KEY: ${{ secrets.TEST_API_KEY }} + +jobs: + + deploy: + name: Deploy app + runs-on: ubuntu-latest + needs: pre-deploy-test-suite + steps: + - uses: actions/checkout@v3 + - name: Change directory + run: cd apps/api + - uses: superfly/flyctl-actions/setup-flyctl@master + - run: flyctl deploy ./apps/api --remote-only -a firecrawl-scraper-js + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}