Skip to content

Commit

Permalink
fix: migrate service to cloud run function
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Oct 2, 2024
1 parent e35aff4 commit 56e8889
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,16 @@ jobs:
VITE_FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }}

- name: 🚀 Deploy Cloud Function
uses: google-github-actions/deploy-cloud-functions@v2
uses: google-github-actions/deploy-cloud-functions@v3
timeout-minutes: 10
with:
name: send-email-service
runtime: nodejs20
source_dir: function
entry_point: sendgrid
timeout: 10
max_instances: 2
min_instances: 0
memory_mb: 128
secret_environment_variables: 'SENDGRID_API_KEY=projects/${{ secrets.PROJECT_ID }}/secrets/sendgrid'
service_account_email: function-sa@${{ secrets.PROJECT_ID }}.iam.gserviceaccount.com
service_timeout: 30s
max_instance_count: 2
min_instance_count: 0
memory: 128Mb
secrets: 'SENDGRID_API_KEY=projects/${{ secrets.PROJECT_ID }}/secrets/sendgrid'
service_account: function-sa@${{ secrets.PROJECT_ID }}.iam.gserviceaccount.com

0 comments on commit 56e8889

Please sign in to comment.