-
Notifications
You must be signed in to change notification settings - Fork 71
/
.goreleaser.yml
69 lines (69 loc) · 1.92 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: astro
version: 2
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
- go mod tidy
release:
github:
owner: astronomer
name: astro-cli
# If set to auto, will mark the release as not ready for production
prerelease: true
changelog:
sort: asc
use: github
builds:
- main: main.go
binary: astro
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- 386
- arm64
- amd64
goarm:
- 7
ldflags: -s -w -X github.com/astronomer/astro-cli/version.CurrVersion={{ .Version }}
brews:
- repository:
owner: astronomer
name: homebrew-tap
directory: Formula
# Setting this will prevent goreleaser to actually try to commit the updated
# formula - instead, the formula file will be stored on the dist folder only,
# leaving the responsibility of publishing it to the user.
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Default is false.
skip_upload: true
homepage: https://astronomer.io
description: To build and run Airflow DAGs locally via docker-compose and deploy DAGs to Astronomer-managed Airflow clusters and interact with the Astronomer API.
test: |
system "#{bin}/astro version"
archives:
- format: tar.gz
format_overrides:
- goos: windows
format: binary
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
files:
- licence*
- LICENCE*
- license*
- LICENSE*
- readme*
- README*
- changelog*
- CHANGELOG*
snapshot:
name_template: SNAPSHOT-{{ .Commit }}
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'