File tree 2 files changed +14
-9
lines changed
2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 50
50
needs : test
51
51
52
52
runs-on : ubuntu-latest
53
+ strategy :
54
+ matrix :
55
+ plugin : [golangci-lint, revive, staticcheck]
53
56
54
57
steps :
55
58
- name : Check out to repository
63
66
64
67
- name : Run script/build
65
68
run : |
66
- script/build --build-arg go_token=${{ secrets.GO_SDK_CLONE_TOKEN }}
69
+ script/build ${{ matrix.plugin }} --build-arg go_token=${{ secrets.GO_SDK_CLONE_TOKEN }}
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- projects=(golangci-lint revive staticcheck)
6
- for i in " ${projects[@]} " ; do
7
- docker build -f " ${i} /Dockerfile" -t " cocov/${i} :$( cat " ${i} /VERSION" | head -n 1) " $@ .
8
- done
9
-
10
- for i in " ${projects[@]} " ; do
11
- docker push " cocov/${i} :$( cat " ${i} /VERSION" | head -n 1) "
12
- done
5
+ if [[ -z " $1 " ]]; then
6
+ echo " Usage: script/build PROJECTNAME"
7
+ exit 1
8
+ fi
9
+
10
+ proj=" $1 "
11
+ shift
12
+
13
+ docker build -f " ${proj} /Dockerfile" -t " cocov/${proj} :$( cat " ${proj} /VERSION" | head -n 1) " $@ .
14
+ docker push " cocov/${proj} :$( cat " ${proj} /VERSION" | head -n 1) "
13
15
You can’t perform that action at this time.
0 commit comments