diff --git a/.gitignore b/.gitignore index 2f8965d..773fdb9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ release.json +dist diff --git a/.goreleaser.yml b/.goreleaser.yml index 5b5a784..b9730c6 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -16,21 +16,37 @@ builds: ldflags: - '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}' goos: - - freebsd - windows - linux - darwin goarch: - amd64 - - '386' - arm - arm64 ignore: - goos: darwin - goarch: '386' + goarch: arm + - goos: linux + goarch: arm + - goos: windows + goarch: arm + - goos: windows + goarch: arm64 binary: '{{ .ProjectName }}_v{{ .Version }}' + hooks: + post: + - curl "https://release.ariga.io/atlas/atlas-{{ .Os }}-{{ if eq .Os "darwin" }}amd64{{ else }}{{ .Arch }}{{ end }}-latest{{ .Ext }}" + -o {{ dir .Path }}/atlas{{ .Ext }} + -A "Terraform-Provider-CI" archives: - format: zip + files: + - LICENSE + - README.md + - src: 'dist/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ with .Amd64 }}_{{ . }}{{ end }}/atlas*' + strip_parent: true + info: + mode: 0755 name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' checksum: extra_files: