File tree Expand file tree Collapse file tree 4 files changed +83
-31
lines changed Expand file tree Collapse file tree 4 files changed +83
-31
lines changed Original file line number Diff line number Diff line change 1+ name : Docker Push
2+ on :
3+ release :
4+ types :
5+ - created
6+ push :
7+ branches :
8+ - master
9+ jobs :
10+ docker :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v2
15+
16+ - name : Build image
17+ uses : mr-smithers-excellent/docker-build-push@v2
18+ with :
19+ image : mcuadros/ofelia
20+ registry : docker.io
21+ username : mcuadros
22+ password : ${{ secrets.DOCKER_PASSWORD }}
23+
24+ - name : Tag image
25+ if : github.event_name == 'release'
26+ uses : mr-smithers-excellent/docker-build-push@v2
27+ with :
28+ image : mcuadros/ofelia
29+ registry : docker.io
30+ tag : latest
31+ username : mcuadros
32+ password : ${{ secrets.DOCKER_PASSWORD }}
Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ release :
4+ types :
5+ - created
6+
7+ jobs :
8+ release :
9+ strategy :
10+ fail-fast : false
11+ matrix :
12+ goos : [linux, darwin]
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v2
17+
18+ - name : Release binaries
19+ uses : mcuadros/go-release-action@master
20+ with :
21+ github_token : ${{ secrets.GITHUB_TOKEN }}
22+ goos : ${{ matrix.goos }}
23+ goarch : amd64
Original file line number Diff line number Diff line change 1+ name : Test
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ branches :
8+ - master
9+ jobs :
10+ test :
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ go-version : [1.13.x, 1.14.x]
15+ platform : [ubuntu-latest, macos-latest]
16+ runs-on : ${{ matrix.platform }}
17+ steps :
18+
19+ - name : Install Go
20+ uses : actions/setup-go@v1
21+ with :
22+ go-version : ${{ matrix.go-version }}
23+
24+ - name : Checkout code
25+ uses : actions/checkout@v2
26+
27+ - name : Test
28+ run : go test ./...
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments