you have an issue with @~..@
. As you said, you have one function per directory and for that I suggest that you create one cloudbuild.yaml per function directory like:
steps:
- name: "gcr.io/cloud-builders/gcloud"
args:
- functions
- deploy
- FUNCTION_NAME
- --runtime=YOUR_RUNTIME
- --trigger-http
- --region=europe-west1
- --memory=128MB
id: "deploying-a-function"
dir: "FUNCTION_DIR"
Then create one trigger per function in cloud build while taking advantage of the include files filter
feature to specify only the directory that you want to watch for. Like if the function in directry test
then the filter should be test/**
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…