Skip to content

Commit 954e404

Browse files
committed
revert back to index.js
1 parent cccb30e commit 954e404

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ terrahub configure -i google_function -c build.phases.pre_build.commands[0]='ech
186186
terrahub configure -i google_function -c build.phases.pre_build.commands[1]='if [ ! -e "$THUB_FUNCTION_TXT" ]; then touch "$THUB_FUNCTION_TXT"; fi'
187187
terrahub configure -i google_function -c build.phases.pre_build.finally[0]='echo "BUILD: pre_build step successful"'
188188
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'
191191
terrahub configure -i google_function -c build.phases.build.finally[0]='echo "BUILD: build step successful"'
192192
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"'
194194
terrahub configure -i google_function -c build.phases.post_build.finally[0]='echo "BUILD: post_build step successful"'
195195
```
196196

google_function/.terrahub.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ build:
5959
- 'echo "BUILD: Running build step"'
6060
- >-
6161
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
6464
- >-
6565
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
6767
google_function -c
6868
component.template.resource.google_storage_bucket_object.google_storage_object.name=$(date
6969
+%s).zip; fi
@@ -73,7 +73,7 @@ build:
7373
commands:
7474
- 'echo "BUILD: Running post_build step"'
7575
- >-
76-
echo $(stat -c %y "${THUB_BUILD_PATH}/demo.js") >
76+
echo $(stat -c %y "${THUB_BUILD_PATH}/index.js") >
7777
"$THUB_FUNCTION_TXT"
7878
finally:
7979
- 'echo "BUILD: post_build step successful"'

demo.js renamed to index.js

File renamed without changes.

0 commit comments

Comments
 (0)