File tree Expand file tree Collapse file tree 6 files changed +91
-40
lines changed Expand file tree Collapse file tree 6 files changed +91
-40
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy
2+
3+ on :
4+ push :
5+ branches : [master]
6+ tags :
7+ - " *"
8+
9+ jobs :
10+ deploy :
11+ name : deploy
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/setup-go@v2-beta
15+ with :
16+ go-version : 1.14.1
17+ - uses : actions/checkout@v2
18+ - run : go get -v -t -d
19+
20+ - name : Test
21+ run : go test -v ./...
22+
23+ - name : GoReleaser
24+ uses : goreleaser/goreleaser-action@v1
25+ with :
26+ version : latest
27+ args : release --rm-dist
28+ env :
29+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Stage
2+
3+ on :
4+ push :
5+ branches : [staging]
6+
7+ jobs :
8+ stage :
9+ name : stage
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/setup-go@v2-beta
13+ with :
14+ go-version : 1.14.1
15+ - uses : actions/checkout@v2
16+ - run : go get -v -t -d
17+
18+ - name : Test
19+ run : go test -v ./...
20+
21+ - name : GoReleaser
22+ uses : goreleaser/goreleaser-action@v1
23+ with :
24+ version : latest
25+ args : release --rm-dist --snapshot
26+ env :
27+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+
29+ - name : Build Staging
30+ run : go build
31+
32+ - name : Publish
33+ uses : docker/build-push-action@v1
34+ with :
35+ username : ${{ secrets.DOCKER_USERNAME }}
36+ password : ${{ secrets.DOCKER_PASSWORD }}
37+ repository : picostack/pico
38+ tags : staging
39+ tag_with_sha : true
Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ push :
5+ branches : [master]
6+ pull_request :
7+ branches : [master]
8+
9+ jobs :
10+ test :
11+ name : test
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/setup-go@v2-beta
15+ with :
16+ go-version : 1.14.1
17+ - uses : actions/checkout@v2
18+ - run : go get -v -t -d
19+
20+ - name : Test
21+ run : go test -v ./...
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ builds:
1313checksum :
1414 name_template : " checksums.txt"
1515snapshot :
16- name_template : " {{ .Tag }}-next "
16+ name_template : " SNAPSHOT- {{ .ShortCommit }}"
1717changelog :
1818 sort : asc
1919 filters :
@@ -25,6 +25,7 @@ dockers:
2525 - picostack/pico:{{ .Tag }}
2626 - picostack/pico:v{{ .Major }}
2727 - picostack/pico:v{{ .Major }}.{{ .Minor }}
28+ - picostack/pico:{{ .ShortCommit }}
2829 - picostack/pico:latest
2930nfpms :
3031 - vendor : Southclaws
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments