Skip to content

Commit

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

0 comments on commit 5fe03f6

Please sign in to comment.