-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser-dev.yaml
44 lines (43 loc) · 1.5 KB
/
.goreleaser-dev.yaml
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
43
44
project_name: apictl
version: 2
before:
hooks:
- go mod tidy
- go generate ./...
- mkdir -p dist-extra
- script/write_version_info.sh "{{.Major}}" "{{.Minor}}" "{{.Patch}}" "next.{{ .CommitTimestamp }}" "{{.ShortCommit}}" "https://humanlog-binaries.sfo3.cdn.digitaloceanspaces.com/humanlog-binaries/{{ .ProjectName }}/dev/{{ .CommitTimestamp }}/{{ .ShortCommit }}"
builds:
- main: .
binary: apictl
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.versionMajor={{.Major}} -X main.versionMinor={{.Minor}} -X main.versionPatch={{.Patch}} -X main.versionPrerelease=next.{{ .CommitTimestamp }} -X main.versionBuild={{.ShortCommit}} -X main.defaultApiAddr="https://api.humanlog.dev"
goos:
# - windows
- darwin
- linux
goarch:
- amd64
- arm64
release:
disable: true
blobs:
- provider: s3
endpoint: https://humanlog-binaries.sfo3.digitaloceanspaces.com
region: sfo3
bucket: humanlog-binaries
directory: "{{ .ProjectName }}/dev/{{ .CommitTimestamp }}/{{ .ShortCommit }}"
include_meta: true
acl: public-read
cache_control:
- max-age=9999
- public
archives:
- name_template: "{{ .ProjectName }}_{{ .Version }}-next.{{ .CommitTimestamp }}+{{ .ShortCommit }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
# modelines, feel free to remove those if you don't want/use them:
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj