@@ -23,15 +23,9 @@ component:
23
23
source : ./demo.zip
24
24
google_cloudfunctions_function :
25
25
google_function :
26
- <<<<<<< HEAD:google_function/.terrahub.yml
27
26
depends_on :
28
27
- google_storage_bucket_object.google_storage_object
29
28
name : ' demofunction${local.project["code"]}'
30
- =======
31
- name : ' demofunction${local.project["code"]}'
32
- depends_on :
33
- - google_storage_bucket_object.google_storage_object
34
- >>>>>>> 954e40474032055d4b4f929cfdbe7991e50c8e39:google_function/.terrahub.yml
35
29
region : us-central1
36
30
runtime : nodejs8
37
31
description : My demo function
@@ -41,24 +35,6 @@ component:
41
35
trigger_http : true
42
36
timeout : 60
43
37
entry_point : helloGET
44
- <<<<<<< HEAD:google_function/.terrahub.yml
45
- =======
46
- google_storage_bucket_object :
47
- google_storage_object :
48
- name : demo.zip
49
- bucket : ' ${data.terraform_remote_state.storage.thub_id}'
50
- source : ./demo.zip
51
- terraform :
52
- backend :
53
- local :
54
- path : /tmp/.terrahub/local_backend/google_function/terraform.tfstate
55
- data :
56
- terraform_remote_state :
57
- storage :
58
- backend : local
59
- config :
60
- path : /tmp/.terrahub/local_backend/google_storage/terraform.tfstate
61
- >>>>>>> 954e40474032055d4b4f929cfdbe7991e50c8e39:google_function/.terrahub.yml
62
38
output :
63
39
id :
64
40
value : ' ${google_cloudfunctions_function.google_function.id}'
@@ -88,20 +64,7 @@ build:
88
64
build :
89
65
commands :
90
66
- ' echo "BUILD: Running build step"'
91
- <<<<<<< HEAD:google_function/.terrahub.yml
92
67
- ./scripts/build.sh $COMPONENT_NAME $OBJECT_NAME $THUB_BUCKET_KEY/
93
- =======
94
- - >-
95
- if [ "$(head -n 1 "$THUB_FUNCTION_TXT")" != "$(stat -c %y
96
- "${THUB_BUILD_PATH}/index.js")" ]; then zip -j ${THUB_FUNCTION_ZIP}
97
- ${THUB_BUILD_PATH}/index.js; fi
98
- - >-
99
- if [ "$(head -n 1 "$THUB_FUNCTION_TXT")" != "$(stat -c %y
100
- "${THUB_BUILD_PATH}/index.js")" ]; then terrahub configure -i
101
- google_function -c
102
- component.template.resource.google_storage_bucket_object.google_storage_object.name=$(date
103
- +%s).zip; fi
104
- >>>>>>> 954e40474032055d4b4f929cfdbe7991e50c8e39:google_function/.terrahub.yml
105
68
finally :
106
69
- ' echo "BUILD: build step successful"'
107
70
post_build :
0 commit comments