Skip to content

Commit

Permalink
ci: bundle atlas-cli with provider (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm authored Nov 2, 2022
1 parent 568d100 commit e0c20fb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
release.json
dist
22 changes: 19 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e0c20fb

Please sign in to comment.