File tree Expand file tree Collapse file tree 2 files changed +38
-13
lines changed Expand file tree Collapse file tree 2 files changed +38
-13
lines changed Original file line number Diff line number Diff line change 1
- name : Release (Develop)
1
+ name : Push to main
2
2
3
3
on :
4
+ workflow_dispatch : {}
4
5
push :
5
6
branches :
6
7
- main
7
8
8
9
jobs :
9
-
10
10
build :
11
-
12
11
runs-on : ubuntu-latest
13
-
14
12
steps :
15
- - uses : actions/checkout@v2
16
-
17
- - uses : jerray/publish-docker-action@master
18
- with :
19
- username : ${{ secrets.DOCKERHUB_USERNAME }}
20
- password : ${{ secrets.DOCKERHUB_PASSWORD }}
21
- file : dockerfiles/Dockerfile.self-contained
22
- repository : containrrr/watchtower
23
- tags : latest-dev
13
+ - uses : actions/checkout@v2
14
+ - name : Set up Go
15
+ uses : actions/setup-go@v2
16
+ with :
17
+ go-version : 1.15
18
+ - name : Build
19
+ run : go build -v ./...
20
+ test :
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+ - uses : actions/checkout@v2
24
+ - name : Set up Go
25
+ uses : actions/setup-go@v2
26
+ with :
27
+ go-version : 1.15
28
+ - name : Test
29
+ run : go test -v -coverprofile coverage.out -covermode atomic ./...
30
+ - name : Publish coverage
31
+ uses : codecov/codecov-action@v1
32
+ with :
33
+ token : ${{ secrets.CODECOV_TOKEN }}
34
+ publish :
35
+ needs :
36
+ - build
37
+ - test
38
+ runs-on : ubuntu-latest
39
+ steps :
40
+ - uses : actions/checkout@v2
41
+ - uses : jerray/publish-docker-action@master
42
+ with :
43
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
44
+ password : ${{ secrets.DOCKERHUB_PASSWORD }}
45
+ file : dockerfiles/Dockerfile.self-contained
46
+ repository : containrrr/watchtower
47
+ tags : latest-dev
Original file line number Diff line number Diff line change 1
1
name : Release (Production)
2
2
3
3
on :
4
+ workflow_dispatch : {}
4
5
release :
5
6
types :
6
7
- created
You can’t perform that action at this time.
0 commit comments