-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathconfig.yml
79 lines (78 loc) · 2.22 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: 2
jobs:
test-and-build:
machine:
image: ubuntu-1604:201903-01
environment:
BUILD_IMAGE: weaveworks/eksctl-build:8e330e060aedef9b8845fb072be2da91b8c49e6e
steps:
- checkout
# enabling docker executor will require to use large resource class, which
# implies extra cost - we don't really have to do that, we can just run the
# image this way
- run: docker pull $BUILD_IMAGE
- run:
name: Test & Build
command: |
docker run \
--env=JUNIT_REPORT_DIR=/src/test-results \
--volume=$(pwd):/src \
$BUILD_IMAGE make test build
- store_test_results:
path: ./test-results
- store_artifacts:
path: ./test-results
release-candidate:
machine:
image: ubuntu-1604:201903-01
environment:
BUILD_IMAGE: weaveworks/eksctl-build:8e330e060aedef9b8845fb072be2da91b8c49e6e
steps:
- checkout
- run: docker pull $BUILD_IMAGE
- run:
name: Create release candidate binaries for all plaforms and upload to GitHub
command: make release-candidate
no_output_timeout: 21m
release:
machine:
image: ubuntu-1604:201903-01
environment:
BUILD_IMAGE: weaveworks/eksctl-build:8e330e060aedef9b8845fb072be2da91b8c49e6e
steps:
- checkout
- run: docker pull $BUILD_IMAGE
- run:
name: Create release binaries for all plaforms and upload to GitHub
command: make release
no_output_timeout: 21m
workflows:
version: 2
any-commit:
jobs:
- test-and-build:
filters:
tags:
ignore: /.*/
release:
jobs:
- test-and-build:
filters:
branches:
ignore: /.*/
tags:
ignore: /^latest_release$/
- release-candidate:
requires: [test-and-build]
filters:
branches:
ignore: /.*/
tags:
only: /[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+/
- release:
requires: [test-and-build]
filters:
branches:
ignore: /.*/
tags:
only: /[0-9]+\.[0-9]+\.[0-9]+/