File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -186,11 +186,11 @@ terrahub configure -i google_function -c build.phases.pre_build.commands[0]='ech
186
186
terrahub configure -i google_function -c build.phases.pre_build.commands[1]=' if [ ! -e "$THUB_FUNCTION_TXT" ]; then touch "$THUB_FUNCTION_TXT"; fi'
187
187
terrahub configure -i google_function -c build.phases.pre_build.finally[0]=' echo "BUILD: pre_build step successful"'
188
188
terrahub configure -i google_function -c build.phases.build.commands[0]=' echo "BUILD: Running build step"'
189
- terrahub configure -i google_function -c build.phases.build.commands[1]=' if [ "$(head -n 1 "$THUB_FUNCTION_TXT")" != "$(stat -c %y "${THUB_BUILD_PATH}/demo .js")" ]; then zip -j ${THUB_FUNCTION_ZIP} ${THUB_BUILD_PATH}/demo .js; fi'
190
- terrahub configure -i google_function -c build.phases.build.commands[2]=' if [ "$(head -n 1 "$THUB_FUNCTION_TXT")" != "$(stat -c %y "${THUB_BUILD_PATH}/demo .js")" ]; then terrahub configure -i google_function -c component.template.resource.google_storage_bucket_object.google_storage_object.name=$(date +%s).zip; fi'
189
+ terrahub configure -i google_function -c build.phases.build.commands[1]=' if [ "$(head -n 1 "$THUB_FUNCTION_TXT")" != "$(stat -c %y "${THUB_BUILD_PATH}/index .js")" ]; then zip -j ${THUB_FUNCTION_ZIP} ${THUB_BUILD_PATH}/index .js; fi'
190
+ terrahub configure -i google_function -c build.phases.build.commands[2]=' if [ "$(head -n 1 "$THUB_FUNCTION_TXT")" != "$(stat -c %y "${THUB_BUILD_PATH}/index .js")" ]; then terrahub configure -i google_function -c component.template.resource.google_storage_bucket_object.google_storage_object.name=$(date +%s).zip; fi'
191
191
terrahub configure -i google_function -c build.phases.build.finally[0]=' echo "BUILD: build step successful"'
192
192
terrahub configure -i google_function -c build.phases.post_build.commands[0]=' echo "BUILD: Running post_build step"'
193
- terrahub configure -i google_function -c build.phases.post_build.commands[1]=' echo $(stat -c %y "${THUB_BUILD_PATH}/demo .js") > "$THUB_FUNCTION_TXT"'
193
+ terrahub configure -i google_function -c build.phases.post_build.commands[1]=' echo $(stat -c %y "${THUB_BUILD_PATH}/index .js") > "$THUB_FUNCTION_TXT"'
194
194
terrahub configure -i google_function -c build.phases.post_build.finally[0]=' echo "BUILD: post_build step successful"'
195
195
```
196
196
Original file line number Diff line number Diff line change @@ -59,11 +59,11 @@ build:
59
59
- ' echo "BUILD: Running build step"'
60
60
- >-
61
61
if [ "$(head -n 1 "$THUB_FUNCTION_TXT")" != "$(stat -c %y
62
- "${THUB_BUILD_PATH}/demo .js")" ]; then zip -j ${THUB_FUNCTION_ZIP}
63
- ${THUB_BUILD_PATH}/demo .js; fi
62
+ "${THUB_BUILD_PATH}/index .js")" ]; then zip -j ${THUB_FUNCTION_ZIP}
63
+ ${THUB_BUILD_PATH}/index .js; fi
64
64
- >-
65
65
if [ "$(head -n 1 "$THUB_FUNCTION_TXT")" != "$(stat -c %y
66
- "${THUB_BUILD_PATH}/demo .js")" ]; then terrahub configure -i
66
+ "${THUB_BUILD_PATH}/index .js")" ]; then terrahub configure -i
67
67
google_function -c
68
68
component.template.resource.google_storage_bucket_object.google_storage_object.name=$(date
69
69
+%s).zip; fi
73
73
commands :
74
74
- ' echo "BUILD: Running post_build step"'
75
75
- >-
76
- echo $(stat -c %y "${THUB_BUILD_PATH}/demo .js") >
76
+ echo $(stat -c %y "${THUB_BUILD_PATH}/index .js") >
77
77
"$THUB_FUNCTION_TXT"
78
78
finally :
79
79
- ' echo "BUILD: post_build step successful"'
File renamed without changes.
You can’t perform that action at this time.
0 commit comments