Skip to content

Commit

Permalink
Goreleaser update for multiple archives
Browse files Browse the repository at this point in the history
  • Loading branch information
frapposelli committed Jun 21, 2019
1 parent 9488a6f commit 99dd594
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 33 deletions.
127 changes: 94 additions & 33 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,52 @@
---
project_name: govc
project_name: govmomi
builds:
- goos:
- linux
- darwin
- windows
- freebsd
- id: govc
goos:
- linux
- darwin
- windows
- freebsd
goarch:
- amd64
- 386
- amd64
- 386
- arm64
env:
- CGO_ENABLED=0
- CGO_ENABLED=0
main: ./govc/main.go
binary: govc
flags: -compiler gc
ldflags: -X github.com/vmware/govmomi/govc/flags.GitVersion={{.Version}}
archive:
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
format: tar.gz
- id: vcsim
goos:
- linux
- darwin
- windows
- freebsd
goarch:
- amd64
- 386
- arm64
env:
- CGO_ENABLED=0
main: ./vcsim/main.go
binary: vcsim
flags: -compiler gc
ldflags: -X github.com/vmware/govmomi/vcsim/flags.GitVersion={{.Version}}
archives:
- id: govcbuild
builds: ['govc']
name_template: 'govc_{{ .Os }}_{{ .Arch }}'
format: gz
format_overrides:
- goos: windows
format: zip
files:
- none*
- id: vcsimbuild
builds: ['vcsim']
name_template: 'vcsim_{{ .Os }}_{{ .Arch }}'
format: gz
format_overrides:
- goos: windows
format: zip
Expand All @@ -33,25 +62,57 @@ changelog:
- '^test:'
- Merge pull request
- Merge branch
brew:
github:
owner: govmomi
name: homebrew-tap
commit_author:
name: Alfred the Narwhal
email: [email protected]
folder: Formula
homepage: "https://github.com/vmware/govmomi/blob/master/govc/README.md"
description: "govc is a vSphere CLI built on top of govmomi."
test: |
system "#{bin}/govc version"
brews:
- name: govc
ids:
- govc
github:
owner: govmomi
name: homebrew-tap
commit_author:
name: Alfred the Narwhal
email: [email protected]
folder: Formula
homepage: "https://github.com/vmware/govmomi/blob/master/govc/README.md"
description: "govc is a vSphere CLI built on top of govmomi."
test: |
system "#{bin}/govc version"
install: |
bin.install "govc"
- name: vcsim
ids:
- vcsim
github:
owner: govmomi
name: homebrew-tap
commit_author:
name: Alfred the Narwhal
email: [email protected]
folder: Formula
homepage: "https://github.com/vmware/govmomi/blob/master/vcsim/README.md"
description: "vcsim is a vSphere API simulator built on top of govmomi."
test: |
system "#{bin}/vcsim -h"
install: |
bin.install "vcsim"
dockers:
- image: vmware/govc
goos: linux
goarch: amd64
binary: govc
tag_templates:
- "{{ .Tag }}"
- "v{{ .Major }}"
- "v{{ .Major }}.{{ .Minor }}"
- latest
- image_templates:
- "vmware/govc:{{ .Tag }}"
- "vmware/govc:v{{ .Major }}"
- "vmware/govc:v{{ .Major }}.{{ .Minor }}"
- "vmware/govc:latest"
goos: linux
goarch: amd64
dockerfile: Dockerfile.govc
binaries:
- govc
- image_templates:
- "vmware/vcsim:{{ .Tag }}"
- "vmware/vcsim:v{{ .Major }}"
- "vmware/vcsim:v{{ .Major }}.{{ .Minor }}"
- "vmware/vcsim:latest"
goos: linux
goarch: amd64
dockerfile: Dockerfile.vcsim
binaries:
- vcsim
File renamed without changes.
4 changes: 4 additions & 0 deletions Dockerfile.vcsim
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM scratch
LABEL maintainer="[email protected]"
COPY vcsim /
ENTRYPOINT [ "/vcsim" ]

0 comments on commit 99dd594

Please sign in to comment.