Created
November 2, 2022 12:45
-
-
Save Mattchewone/8dbdda25fc8cc5bb43332ee3543f2ce7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deploy function: | |
stage: deploy | |
image: google/cloud-sdk:latest | |
script: | |
- cd $APP | |
- gcloud auth activate-service-account --key-file $GCLOUD_SERVICE_KEY | |
- gcloud config set project $GCLOUD_SERVICE_PROJECT | |
- gcloud functions deploy $APP --gen2 --runtime nodejs16 --entry-point $APP --trigger-http --region=europe-west1 --memory=2048 --timeout=10m --allow-unauthenticated | |
only: | |
- master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment