proper multi project building

This commit is contained in:
Andy Pack 2023-10-12 23:33:15 +01:00
parent 246805e1e9
commit cfcd6f1429
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7
3 changed files with 11 additions and 2 deletions

8
.gcloudignore Normal file
View File

@ -0,0 +1,8 @@
# This file tells "gcloud functions deploy" which files and folders
# to ignore. This is important when deploying multi-project functions,
# as otherwise a lot of unnecessary files (particularly in the bin and
# obj directories) may be uploaded.
.gcloudignore
bin/
obj/

View File

@ -46,12 +46,12 @@ jobs:
- name: Deploy RunUserPlaylist
run: |
cd Mixonomer.Func && \
gcloud functions deploy RunUserPlaylist \
--region europe-west2 \
--gen2 \
--runtime=dotnet6 \
--trigger-topic RunUserPlaylist \
--set-env-vars GOOGLE_CLOUD_PROJECT=${{ vars.GCP_PROJECT }} \
--service-account runuserplaylist-func@${{ vars.GCP_PROJECT }}.iam.gserviceaccount.com
--service-account runuserplaylist-func@${{ vars.GCP_PROJECT }}.iam.gserviceaccount.com \
--set-build-env-vars=GOOGLE_BUILDABLE=Mixonomer.Func
shell: bash

1
.gitignore vendored
View File

@ -12,6 +12,7 @@ tarballs/
test-results/
creds.sh
gcp_cred.json
# Mac bundle stuff
*.dmg