File tree Expand file tree Collapse file tree 1 file changed +27
-58
lines changed Expand file tree Collapse file tree 1 file changed +27
-58
lines changed Original file line number Diff line number Diff line change 11version : 2.1
2- executors :
3- default :
4- docker :
5- - image : circleci/golang:1.12
62
7- jobs :
8- lint :
9- executor :
10- name : default
11- steps :
12- - checkout
13- - run : make check-style
14-
15- test :
16- executor :
17- name : default
18- steps :
19- - checkout
20- - run : make test
21-
22- build :
23- executor :
24- name : default
25- steps :
26- - checkout
27- - run : make dist
28- - persist_to_workspace :
29- root : .
30- paths : ./dist/*.tar.gz
31-
32- publish-github-release :
33- docker :
34- - image : cibuilds/github:0.12
35- steps :
36- - attach_workspace :
37- at : .
38- - run :
39- name : " Publish Release on GitHub"
40- command : |
41- ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./dist/com.mattermost.aws-sns-*.tar.gz
3+ orbs :
4+ plugin-ci : mattermost/plugin-ci@volatile
425
436workflows :
44- version : 2
45- untagged-build :
46- jobs :
47- - lint
48- - test
49- tagged-build :
7+ ci-build :
508 jobs :
51- - lint :
9+ - plugin-ci/ lint :
5210 filters :
5311 tags :
5412 only : /^v.*/
55- branches :
56- ignore : /.*/
57- - test :
13+ - plugin-ci/test :
14+ filters :
15+ tags :
16+ only : /^v.*/
17+ - plugin-ci/build :
5818 filters :
5919 tags :
6020 only : /^v.*/
21+ - plugin-ci/deploy-ci :
22+ filters :
6123 branches :
62- ignore : /.*/
63- - build :
24+ only : master
25+ context : plugin-ci
6426 requires :
65- - lint
66- - test
27+ - plugin-ci/lint
28+ - plugin-ci/test
29+ - plugin-ci/build
30+ - plugin-ci/deploy-release :
6731 filters :
6832 tags :
6933 only : /^v.*/
7034 branches :
7135 ignore : /.*/
72- - publish-github-release :
73- context : matterbuild-github-token
36+ context : plugin-ci
7437 requires :
75- - lint
76- - test
77- - build
38+ - plugin-ci/lint
39+ - plugin-ci/test
40+ - plugin-ci/build
41+ - plugin-ci/deploy-release-github :
7842 filters :
7943 tags :
8044 only : /^v.*/
8145 branches :
8246 ignore : /.*/
47+ context : matterbuild-github-token
48+ requires :
49+ - plugin-ci/lint
50+ - plugin-ci/test
51+ - plugin-ci/build
You can’t perform that action at this time.
0 commit comments