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
37
37
make test
38
38
39
+ # Cross build is needed for publish_release but needs to be done outside of docker.
40
+ cross_build :
41
+ machine : true
42
+ working_directory : /home/circleci/.go_workspace/src/github.com/improbable-eng/thanos
43
+ steps :
44
+ - checkout
45
+ - run : make crossbuild
46
+ - persist_to_workspace :
47
+ root : .
48
+ paths :
49
+ - .build
50
+
39
51
publish_master :
40
52
docker :
41
53
# Available from https://hub.docker.com/r/circleci/golang/
67
79
- run : echo 'export PATH=${HOME}/bin:${PATH}' >> ${BASH_ENV}
68
80
- attach_workspace :
69
81
at : .
70
- - run : make crossbuild
71
82
- run : make tarballs-release
72
83
- store_artifacts :
73
84
path : .tarballs
@@ -92,9 +103,18 @@ workflows:
92
103
filters :
93
104
branches :
94
105
only : master
106
+ - cross_build :
107
+ requires :
108
+ - test
109
+ filters :
110
+ tags :
111
+ only : /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
112
+ branches :
113
+ ignore : /.*/
95
114
- publish_release :
96
115
requires :
97
116
- test
117
+ - cross_build
98
118
filters :
99
119
tags :
100
120
only : /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
You can’t perform that action at this time.
0 commit comments