Skip to content

Commit ffb3256

Browse files
committed
github action
1 parent dd55fd0 commit ffb3256

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,16 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check out code
13-
uses: actions/checkout@v1
13+
uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
17+
- uses: actions/setup-go@v4
18+
with:
19+
go-version: 1.19
20+
21+
- name: "Docker login"
22+
run: docker login ghcr.io -u docker -p ${{ secrets.GITHUB_TOKEN }}
1423

1524
- name: Validates GO releaser config
1625
uses: docker://goreleaser/goreleaser:latest

.goreleaser.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,24 @@ before:
77
builds:
88
- env:
99
- CGO_ENABLED=0
10-
archives:
11-
- replacements:
12-
darwin: Darwin
13-
linux: Linux
14-
windows: Windows
15-
386: i386
16-
amd64: x86_64
1710
checksum:
1811
name_template: 'checksums.txt'
1912
snapshot:
20-
name_template: "{{ .Tag }}-next"
13+
name_template: "{{ .Tag }}-{{ .ShortCommit }}"
2114
changelog:
2215
sort: asc
2316
filters:
2417
exclude:
2518
- '^docs:'
2619
- '^test:'
20+
dockers:
21+
- id: mixin-cli
22+
goos: linux
23+
goarch: amd64
24+
dockerfile: docker/Dockerfile
25+
image_templates:
26+
- "ghcr.io/fox-one/{{ .ProjectName }}/mixin-cli:latest"
27+
- "ghcr.io/fox-one/{{ .ProjectName }}/mixin-cli:{{ .Major }}"
28+
- "ghcr.io/fox-one/{{ .ProjectName }}/mixin-cli:{{ .Major }}.{{ .Minor }}"
29+
- "ghcr.io/fox-one/{{ .ProjectName }}/mixin-cli:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
30+

0 commit comments

Comments
 (0)