File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Main
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ docker :
10+ runs-on : ubuntu-22.04
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v3
14+ with :
15+ fetch-depth : 0
16+
17+ - name : Login to Docker Hub
18+ uses : docker/login-action@v1
19+ with :
20+ username : ${{ secrets.DOCKERHUB_USER }}
21+ password : ${{ secrets.DOCKERHUB_SECRET }}
22+
23+ - name : Set up QEMU
24+ uses : docker/setup-qemu-action@v2
25+ with :
26+ platforms : " amd64,arm64"
27+
28+ - name : Set up Docker Buildx
29+ uses : docker/setup-buildx-action@v2
30+
31+ - name : Setup Go
32+ uses : actions/setup-go@v3
33+ with :
34+ go-version : 1.23.1
35+
36+ - name : Run GoReleaser for Main Branch
37+ uses : goreleaser/goreleaser-action@v3
38+ with :
39+ distribution : goreleaser
40+ version : v1.10.3
41+ args : release --snapshot --rm-dist --timeout 60m --config .goreleaser.main.yml
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments