From 9df48b3b9914f0cc5cd100a0d1fca3ec6d30c78d Mon Sep 17 00:00:00 2001 From: sattwyk Date: Tue, 5 Nov 2024 16:36:06 +0530 Subject: [PATCH] chore: remove Cloud Run deployment workflow --- .github/workflows/deploy.yaml | 48 ----------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml deleted file mode 100644 index ab0381f..0000000 --- a/.github/workflows/deploy.yaml +++ /dev/null @@ -1,48 +0,0 @@ -name: Deploy to Cloud Run - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -env: - PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} - SERVICE_NAME: discord-bot - -jobs: - deploy: - runs-on: ubuntu-latest - permissions: - contents: 'read' - id-token: 'write' - - steps: - - uses: actions/checkout@v4 - - - id: 'auth' - name: 'Authenticate to Google Cloud' - uses: 'google-github-actions/auth@v2' - with: - credentials_json: ${{ secrets.GCP_SA_KEY }} - - - name: 'Set up Cloud SDK' - uses: 'google-github-actions/setup-gcloud@v2' - - - name: Configure Docker - run: gcloud auth configure-docker - - - name: Build and Push Docker image - run: | - echo "Building image for project: $PROJECT_ID" - docker build -t gcr.io/$PROJECT_ID/$SERVICE_NAME:${{ github.sha }} ./bot - docker push gcr.io/$PROJECT_ID/$SERVICE_NAME:${{ github.sha }} - - - name: Deploy to Cloud Run - run: | - gcloud run deploy $SERVICE_NAME \ - --image gcr.io/$PROJECT_ID/$SERVICE_NAME:${{ github.sha }} \ - --platform managed \ - --region asia-south1 \ - --allow-unauthenticated \ - --set-env-vars="DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }},RESEND_API_KEY=${{ secrets.RESEND_API_KEY }},UPSTASH_REDIS_REST_URL=${{ secrets.UPSTASH_REDIS_REST_URL }},UPSTASH_REDIS_REST_TOKEN=${{ secrets.UPSTASH_REDIS_REST_TOKEN }}" \ No newline at end of file