diff --git a/.github/workflows/docker_push_backend.yml b/.github/workflows/docker_push_backend.yml index c394904b67..be90b725ac 100644 --- a/.github/workflows/docker_push_backend.yml +++ b/.github/workflows/docker_push_backend.yml @@ -123,4 +123,17 @@ jobs: env: THE_TAGS: ${{ steps.meta.outputs.tags }} run: | - docker push ${{ steps.meta.outputs.tags }} \ No newline at end of file + docker push ${{ steps.meta.outputs.tags }} + + # Deploy the image to Cloud Run + - name: Deploy to Cloud Run + run: | + gcloud run deploy ${{ env.IMAGE_NAME }} \ + --image ${{ steps.meta.outputs.tags }} \ + --platform managed \ + --region us-central1 \ + --allow-unauthenticated \ + --update-env-vars DATABASE_URL=${{ secrets.DATABASE_URL }},COHERE_API_KEY=${{ secrets.COHERE_API_KEY }} \ + --memory 4Gi \ + --cpu 4 + --max-instances 1