Skip to content

Commit

Permalink
~
Browse files Browse the repository at this point in the history
  • Loading branch information
EzioPearce committed Mar 28, 2024
1 parent 3f37774 commit 872b204
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/buildTrigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@ jobs:
gcloud config set project ${{ env.PROJECT_ID }}
- name: Deploy Cloud Function
uses: 'google-github-actions/deploy-cloud-functions@v2'
with:
name: hellohttp
runtime: 'nodejs20'
# run: |
# gcloud functions deploy ${{ env.FUNCTION_NAME }} \
# --trigger-http \
# --gen2 \
# --region ${{ env.REGION }} \
# --runtime nodejs20 \
# --min-instances 0 \
# --max-instances 10 \
# --memory 16GiB \
# --entry-point=function_handler \
# --timeout=540 \
# --update-env-vars GCP_PROJECT=${{ env.PROJECT_ID }}
# uses: 'google-github-actions/deploy-cloud-functions@v2'
# with:
# name: hellohttp
# runtime: 'nodejs20'
run: |
gcloud functions deploy ${{ env.FUNCTION_NAME }} \
--trigger-http \
--gen2 \
--region ${{ env.REGION }} \
--runtime nodejs20 \
--min-instances 0 \
--max-instances 10 \
--memory 16GiB \
--entry-point=function_handler \
--timeout=540 \
--update-env-vars GCP_PROJECT=${{ env.PROJECT_ID }}
- name: Set Cloud Run CPU limits
run: |
gcloud run services update hellohttp --cpu 6 --concurrency 1000 --region ${{ env.REGION }}
gcloud run services update ${{ env.FUNCTION_NAME }} --cpu 6 --concurrency 1000 --region ${{ env.REGION }}

0 comments on commit 872b204

Please sign in to comment.