Skip to content

Commit

Permalink
revert back to index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
eistrati committed Mar 2, 2019
1 parent cccb30e commit 954e404
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ terrahub configure -i google_function -c build.phases.pre_build.commands[0]='ech
terrahub configure -i google_function -c build.phases.pre_build.commands[1]='if [ ! -e "$THUB_FUNCTION_TXT" ]; then touch "$THUB_FUNCTION_TXT"; fi'
terrahub configure -i google_function -c build.phases.pre_build.finally[0]='echo "BUILD: pre_build step successful"'
terrahub configure -i google_function -c build.phases.build.commands[0]='echo "BUILD: Running build step"'
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'
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'
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'
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'
terrahub configure -i google_function -c build.phases.build.finally[0]='echo "BUILD: build step successful"'
terrahub configure -i google_function -c build.phases.post_build.commands[0]='echo "BUILD: Running post_build step"'
terrahub configure -i google_function -c build.phases.post_build.commands[1]='echo $(stat -c %y "${THUB_BUILD_PATH}/demo.js") > "$THUB_FUNCTION_TXT"'
terrahub configure -i google_function -c build.phases.post_build.commands[1]='echo $(stat -c %y "${THUB_BUILD_PATH}/index.js") > "$THUB_FUNCTION_TXT"'
terrahub configure -i google_function -c build.phases.post_build.finally[0]='echo "BUILD: post_build step successful"'
```

Expand Down
8 changes: 4 additions & 4 deletions google_function/.terrahub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ build:
- 'echo "BUILD: Running build step"'
- >-
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
"${THUB_BUILD_PATH}/index.js")" ]; then zip -j ${THUB_FUNCTION_ZIP}
${THUB_BUILD_PATH}/index.js; fi
- >-
if [ "$(head -n 1 "$THUB_FUNCTION_TXT")" != "$(stat -c %y
"${THUB_BUILD_PATH}/demo.js")" ]; then terrahub configure -i
"${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
Expand All @@ -73,7 +73,7 @@ build:
commands:
- 'echo "BUILD: Running post_build step"'
- >-
echo $(stat -c %y "${THUB_BUILD_PATH}/demo.js") >
echo $(stat -c %y "${THUB_BUILD_PATH}/index.js") >
"$THUB_FUNCTION_TXT"
finally:
- 'echo "BUILD: post_build step successful"'
File renamed without changes.

0 comments on commit 954e404

Please sign in to comment.