-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.goreleaser.yml
42 lines (42 loc) · 932 Bytes
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
project_name: opscli
before:
hooks:
- git clone https://github.com/shaowenchen/ops-manifests.git ops-manifests
builds:
-
env:
- CGO_ENABLED=0
main: ./cmd/cli/main.go
binary: opscli
goos:
- linux
- darwin
- windows
goarch:
- "386"
- amd64
- arm
- arm64
goarm:
- "7"
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
tags:
containers_image_openpgp
ldflags:
- -X "github.com/shaowenchen/ops/cmd/cli/version.BuildVersion={{ .Version }}"
- -X "github.com/shaowenchen/ops/cmd/cli/version.BuildDate={{ .Date }}"
- -X "github.com/shaowenchen/ops/cmd/cli/version.GitCommitID={{ .ShortCommit }}"
- -w
- -s
dist: bin
archives:
- name_template: "opscli-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
files:
- ops-manifests/tasks/*
- ops-manifests/taskruns/*
- ops-manifests/pipelines/*
- ops-manifests/eventhooks/*
changelog:
skip: true