Skip to content

Commit ae45478

Browse files
author
Ace Nassri
authored
GCF cloudbuild.yaml: clarify "dir" parameter (#3847)
1 parent c21700f commit ae45478

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

functions/ci_cd/cloudbuild.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ steps:
55
# Run pip install and pytest in the same build step
66
# (pip packages won't be preserved in future steps!)
77
args: [-c, 'pip install -r requirements.txt', '&&', 'pytest']
8-
dir: 'functions/autodeploy'
8+
dir: 'function/dir/from/repo/root'
99
- name: 'gcr.io/cloud-builders/gcloud'
10-
args: ['functions', 'deploy', '[YOUR_DEPLOYED_FUNCTION_NAME]', '[YOUR_FUNCTION_TRIGGER]', '--runtime', '[YOUR_RUNTIME]', '--entry-point', '[YOUR_FUNCTION_NAME_IN_CODE]']
11-
dir: 'functions/autodeploy'
12-
# [END functions_ci_cd_cloud_build]
10+
args: ['functions', 'deploy', '[YOUR_DEPLOYED_FUNCTION_NAME]', '[YOUR_FUNCTION_TRIGGER]', '--runtime', 'python37', '--entry-point', '[YOUR_FUNCTION_NAME_IN_CODE]']
11+
dir: 'function/dir/from/repo/root'
12+
# [END functions_ci_cd_cloud_build]

0 commit comments

Comments
 (0)