Skip to content

Commit f3355e4

Browse files
leogrpoiana
authored andcommitted
new(.github/workflows): publish dev build for main branch
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
1 parent 72d0db9 commit f3355e4

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 }}

0 commit comments

Comments
 (0)