Skip to content

Commit

Permalink
set min and max instances
Browse files Browse the repository at this point in the history
  • Loading branch information
Arturomtz8 committed Sep 19, 2023
1 parent fac5dc8 commit 8c68f8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ jobs:
uses: 'google-github-actions/setup-gcloud@v1'
with:
version: '>= 363.0.0'
install_components: 'beta'
# install_components: 'beta'
- name: 'Use gcloud CLI to deploy a cloud function gen 2'
run: |
gcloud beta functions deploy telegram-bot-handler \
gcloud functions deploy telegram-bot-handler \
--gen2 \
--region=us-central1 \
--runtime=go120 \
--concurrency=10 \
--source=. \
--trigger-http \
--allow-unauthenticated \
--entry-point=HandleTelegramWebhook \
--memory=256MiB \
--cpu=2 \
--min-instances=4 \
--max-instances=10 \
--timeout=360s \
--set-env-vars=GITHUB_BOT_TOKEN=${{ secrets.BOT_TOKEN }} \
--quiet

0 comments on commit 8c68f8d

Please sign in to comment.