File tree Expand file tree Collapse file tree 1 file changed +35
-2
lines changed Expand file tree Collapse file tree 1 file changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,45 @@ jobs:
31
31
dep ensure
32
32
go test -v ./...
33
33
working_directory : /go/src/github.com/mongodb/terraform-aws-ecs-task-definition
34
+ deploy :
35
+ docker :
36
+ - image : circleci/golang:1.11-stretch-browsers-legacy
37
+ steps :
38
+ - checkout
39
+ - run :
40
+ command : |
41
+ go get github.com/tcnksm/ghr
42
+ VERSION="$(git tag -l | head -1)"
43
+ ghr -t "${GITHUB_TOKEN}" -u "${CIRCLE_PROJECT_USERNAME}" -r "${CIRCLE_PROJECT_REPONAME}" -c "${CIRCLE_SHA1}" -delete "${VERSION}" .
34
44
version : 2.1
35
45
workflows :
36
- build-test :
46
+ build-test-deploy :
37
47
jobs :
38
- - build
48
+ - build :
49
+ filters :
50
+ tags :
51
+ only : /.*/
39
52
- test :
53
+ filters :
54
+ tags :
55
+ only : /.*/
40
56
requires :
41
57
- build
58
+ - pause :
59
+ filters :
60
+ branches :
61
+ ignore : /.*/
62
+ tags :
63
+ only : /^v.*/
64
+ requires :
65
+ - test
66
+ type : approval
67
+ - deploy :
68
+ filters :
69
+ branches :
70
+ ignore : /.*/
71
+ tags :
72
+ only : /^v.*/
73
+ requires :
74
+ - pause
42
75
version : 2
You can’t perform that action at this time.
0 commit comments