File tree 1 file changed +21
-1
lines changed
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 36
36
ZIP_NAME=cloud-key-rotator_${VERSION}_cloudfunction.zip
37
37
zip -R ${ZIP_NAME} '*.go' 'go.mod'
38
38
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} ${CIRCLE_TAG} ${ZIP_NAME}
39
-
39
+ publish_tf_lambda_zip :
40
+ docker :
41
+ - image : python:3
42
+ steps :
43
+ - checkout
44
+ - run :
45
+ name : publish
46
+ command : |
47
+ VERSION=$(echo ${CIRCLE_TAG} | sed 's/^v//')
48
+ TARGET_FILE=cloud-key-rotator_${VERSION}_lambda.zip
49
+ curl -L https://github.com/ovotech/cloud-key-rotator/releases/download/v${VERSION}/${TARGET_FILE} -O
50
+ pip3 install awscli
51
+ aws s3 cp $TARGET_FILE s3://ckr-terraform-module-code --acl public-read
40
52
tf_check_aws :
41
53
executor : terraform/terraform-0_12
42
54
steps :
@@ -173,6 +185,14 @@ workflows:
173
185
only : /v[0-9]+(\.[0-9]+)*(-.*)*/
174
186
branches :
175
187
ignore : /.*/
188
+ - publish_tf_lambda_zip :
189
+ requires :
190
+ - goreleaser
191
+ filters :
192
+ tags :
193
+ only : /v[0-9]+(\.[0-9]+)*(-.*)*/
194
+ branches :
195
+ ignore : /.*/
176
196
pr_pipeline :
177
197
jobs :
178
198
- go_fmt :
You can’t perform that action at this time.
0 commit comments