File tree Expand file tree Collapse file tree 1 file changed +4
-32
lines changed Expand file tree Collapse file tree 1 file changed +4
-32
lines changed Original file line number Diff line number Diff line change 1
- name : Build Test Publish
1
+ name : Master branch workflow
2
2
3
3
on :
4
4
push :
18
18
19
19
jobs :
20
20
21
- prepare_tools :
22
- name : Prepare the Tools
21
+ build :
22
+ name : Build Test and Publish
23
23
runs-on : ubuntu-latest
24
24
steps :
25
25
- name : Set up Go 1.x
@@ -34,38 +34,15 @@ jobs:
34
34
- name : Install promu
35
35
run : make promu
36
36
37
- test :
38
- name : Test
39
- needs : prepare_tools
40
- runs-on : ubuntu-latest
41
- steps :
42
- - name : Build and Test
37
+ - name : Build and Test Linux Platform Only
43
38
run : make
44
39
45
40
- name : Check code modifications
46
41
run : git diff --exit-code
47
42
48
- - name : Remove artifacts
49
- run : rm -v aws_cloudwatch_exporter
50
-
51
- build :
52
- name : Build
53
- needs : prepare_tools
54
- runs-on : ubuntu-latest
55
- steps :
56
43
- name : Build Cross-Platform
57
44
run : promu crossbuild -v
58
45
59
- - name : Upload .build folder
60
- uses : actions/upload-artifact@v1
61
- with :
62
- name : dot-build-dir
63
- path : .build
64
-
65
- - name : Copy .build/ into build/
66
- run : cp -rv .build build
67
- shell : bash
68
-
69
46
- name : Build Docker Images
70
47
run : make docker DOCKER_REPO=docker.io/slashdevops
71
48
75
52
- name : Show Docker Images
76
53
run : docker images
77
54
78
- publish_docker_images :
79
- name : Publish Docker Images to Registry
80
- needs : build
81
- runs-on : ubuntu-latest
82
- steps :
83
55
- name : Show Docker Images
84
56
run : docker images
85
57
You can’t perform that action at this time.
0 commit comments