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
22
33on :
44 push :
1818
1919jobs :
2020
21- prepare_tools :
22- name : Prepare the Tools
21+ build :
22+ name : Build Test and Publish
2323 runs-on : ubuntu-latest
2424 steps :
2525 - name : Set up Go 1.x
@@ -34,38 +34,15 @@ jobs:
3434 - name : Install promu
3535 run : make promu
3636
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
4338 run : make
4439
4540 - name : Check code modifications
4641 run : git diff --exit-code
4742
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 :
5643 - name : Build Cross-Platform
5744 run : promu crossbuild -v
5845
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-
6946 - name : Build Docker Images
7047 run : make docker DOCKER_REPO=docker.io/slashdevops
7148
7552 - name : Show Docker Images
7653 run : docker images
7754
78- publish_docker_images :
79- name : Publish Docker Images to Registry
80- needs : build
81- runs-on : ubuntu-latest
82- steps :
8355 - name : Show Docker Images
8456 run : docker images
8557
You can’t perform that action at this time.
0 commit comments