From 97877c4116d88ecd633345aede552b369a03cea7 Mon Sep 17 00:00:00 2001 From: rajdip-b Date: Wed, 10 Apr 2024 21:10:50 +0530 Subject: [PATCH] chore(ci): Disabled api stage release --- .github/workflows/stage-api.yml | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 .github/workflows/stage-api.yml diff --git a/.github/workflows/stage-api.yml b/.github/workflows/stage-api.yml deleted file mode 100644 index 02cb07f9..00000000 --- a/.github/workflows/stage-api.yml +++ /dev/null @@ -1,24 +0,0 @@ -on: - push: - branches: - - develop - paths: ['apps/api/**', '.github/workflows/stage-api.yml', 'fly.api.toml'] - -env: - SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} - DATABASE_URL: ${{ secrets.DATABASE_URL }} - -jobs: - deploy-api-stage: - runs-on: ubuntu-latest - name: Deploy to stage - if: github.ref == 'refs/heads/develop' - - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install fly CLI - run: | - curl -L https://fly.io/install.sh | sh - - name: Deploy to stage - run: ~/.fly/bin/fly deploy --config fly.api.toml --dockerfile ./apps/api/Dockerfile --app keyshade-api-stage --access-token ${{ secrets.FLY_ACCESS_TOKEN }} --build-arg SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN} --build-arg SENTRY_PROJECT=keyshade-api --build-arg SENTRY_ORG=keyshade --build-arg SENTRY_ENVIRONMENT=stage --build-arg DATABASE_URL=${DATABASE_URL}