Skip to content

Commit 0a23d4e

Browse files
committed
fix(1.6): fix ci/cd
1 parent cddc40e commit 0a23d4e

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.goreleaser.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
before:
2+
hooks:
3+
- rm -rf install/command/*.json && touch install/command/docker.json && touch install/command/containerd.json
4+
- make generator-containerd
5+
- make generator-docker
6+
- make generator
7+
# You may remove this if you don't use go modules.
8+
- go mod download
9+
# you may remove this if you don't need go generate
10+
- go generate ./...
11+
builds:
12+
- env:
13+
- CGO_ENABLED=0
14+
goos:
15+
- linux
16+
- darwin
17+
- windows
18+
goarch:
19+
- amd64
20+
- arm64
21+
# ldflags:
22+
# - -s -w -X github.com/sealyun-market/marketctl/cmd.Version={{.Version}} -X github.com/sealyun-market/marketctl/cmd.Githash={{.ShortCommit}} -X github.com/sealyun-market/marketctl/cmd.Buildstamp={{.Date}} -X github.com/sealyun-market/marketctl/cmd.Author=goreleaser
23+
24+
#archives:
25+
# - replacements:
26+
# darwin: darwin
27+
# linux: linux
28+
# windows: windows
29+
# amd64: amd64
30+
# arm64: arm64
31+
checksum:
32+
name_template: 'checksums.txt'
33+
snapshot:
34+
name_template: "{{ .Tag }}-next"
35+
changelog:
36+
sort: asc
37+
filters:
38+
exclude:
39+
- '^docs:'
40+
- '^test:'
41+
42+
#dockers:
43+
# -
44+
# goos: linux
45+
#
46+
# goarch: amd64
47+
#
48+
# binaries:
49+
# - marketctl
50+
#
51+
# image_templates:
52+
# - "louisehong/{{.ProjectName}}:latest"
53+
# - "louisehong/{{.ProjectName}}:{{.Tag}}"
54+
#
55+
# dockerfile: Dockerfile.hub
56+
# extra_files:
57+
# - scripts/entrypoint.sh

0 commit comments

Comments
 (0)