-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
75 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,41 +14,41 @@ builds: | |
ldflags: | ||
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}} | ||
goos: | ||
- windows | ||
- darwin | ||
# - windows | ||
# - darwin | ||
- linux | ||
- openbsd | ||
# - openbsd | ||
goarch: | ||
- amd64 | ||
- arm | ||
- arm64 | ||
goarm: | ||
- 6 | ||
- 7 | ||
# - arm | ||
# - arm64 | ||
# goarm: | ||
# - 6 | ||
# - 7 | ||
ignore: | ||
- goos: openbsd | ||
goarch: arm | ||
- goos: openbsd | ||
goarch: arm64 | ||
|
||
# macOS Universal Binaries | ||
universal_binaries: | ||
- replace: true | ||
name_template: 'exo' | ||
# universal_binaries: | ||
# - replace: true | ||
# name_template: 'exo' | ||
|
||
archives: | ||
- id: windows | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
files: | ||
- LICENSE | ||
- contrib/completion/**/* | ||
- manpage/* | ||
# archives: | ||
# - id: windows | ||
# format_overrides: | ||
# - goos: windows | ||
# format: zip | ||
# files: | ||
# - LICENSE | ||
# - contrib/completion/**/* | ||
# - manpage/* | ||
|
||
release: | ||
github: | ||
owner: exoscale | ||
owner: sauterp | ||
name: cli | ||
|
||
nfpms: | ||
|
@@ -59,7 +59,7 @@ nfpms: | |
license: Apache 2.0 | ||
id: nfpms | ||
formats: | ||
- deb | ||
# - deb | ||
- rpm | ||
contents: | ||
# manpages | ||
|
@@ -72,66 +72,66 @@ nfpms: | |
- src: "./contrib/completion/zsh/_exo" | ||
dst: "/usr/share/zsh/vendor-completions/_exo" | ||
|
||
brews: | ||
- tap: | ||
owner: exoscale | ||
name: homebrew-tap | ||
folder: Formula | ||
homepage: "https://exoscale.github.io/cli/" | ||
description: Manage easily your Exoscale infrastructure from the command-line. | ||
install: | | ||
bin.install "exo" | ||
man1.install Dir["manpage/exo*.1"] | ||
bash_completion.install "contrib/completion/bash/exo" | ||
zsh_completion.install "contrib/completion/zsh/_exo" | ||
# brews: | ||
# - tap: | ||
# owner: exoscale | ||
# name: homebrew-tap | ||
# folder: Formula | ||
# homepage: "https://exoscale.github.io/cli/" | ||
# description: Manage easily your Exoscale infrastructure from the command-line. | ||
# install: | | ||
# bin.install "exo" | ||
# man1.install Dir["manpage/exo*.1"] | ||
# bash_completion.install "contrib/completion/bash/exo" | ||
# zsh_completion.install "contrib/completion/zsh/_exo" | ||
|
||
dockers: | ||
- goos: linux | ||
goarch: amd64 | ||
image_templates: | ||
- "exoscale/cli:latest" | ||
- "exoscale/cli:{{ .Major }}" | ||
- "exoscale/cli:{{ .Major }}.{{ .Minor }}" | ||
- "exoscale/cli:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" | ||
dockerfile: Dockerfile.goreleaser | ||
build_flag_templates: | ||
- --pull | ||
- --build-arg="VERSION={{.Version}}" | ||
- --build-arg="VCS_REF={{.ShortCommit}}" | ||
- --build-arg="BUILD_DATE={{.Date}}" | ||
# dockers: | ||
# - goos: linux | ||
# goarch: amd64 | ||
# image_templates: | ||
# - "exoscale/cli:latest" | ||
# - "exoscale/cli:{{ .Major }}" | ||
# - "exoscale/cli:{{ .Major }}.{{ .Minor }}" | ||
# - "exoscale/cli:{{ .Major }}.{{ .Minor }}.{{ .Patch }}" | ||
# dockerfile: Dockerfile.goreleaser | ||
# build_flag_templates: | ||
# - --pull | ||
# - --build-arg="VERSION={{.Version}}" | ||
# - --build-arg="VCS_REF={{.ShortCommit}}" | ||
# - --build-arg="BUILD_DATE={{.Date}}" | ||
|
||
source: | ||
enabled: true | ||
prefix_template: "{{ .ProjectName }}_{{ .Version }}/" | ||
name_template: "{{ .ProjectName }}_{{ .Version }}" | ||
rlcp: true | ||
files: | ||
- go.mk/* | ||
# source: | ||
# enabled: true | ||
# prefix_template: "{{ .ProjectName }}_{{ .Version }}/" | ||
# name_template: "{{ .ProjectName }}_{{ .Version }}" | ||
# rlcp: true | ||
# files: | ||
# - go.mk/* | ||
|
||
signs: | ||
- cmd: gpg | ||
args: ["--default-key", "7100E8BFD6199CE0374CB7F003686F8CDE378D41", "--detach-sign", "${artifact}"] | ||
artifacts: all | ||
|
||
scoops: | ||
- description: "Command-line tool for everything at Exoscale: compute, storage, dns." | ||
folder: "bucket" | ||
commit_author: | ||
name: "Exoscale Tooling" | ||
email: "[email protected]" | ||
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}" | ||
homepage: "https://github.com/exoscale/cli" | ||
license: "Apache License 2.0" | ||
repository: | ||
owner: exoscale | ||
name: cli | ||
branch: master | ||
# scoops: | ||
# - description: "Command-line tool for everything at Exoscale: compute, storage, dns." | ||
# folder: "bucket" | ||
# commit_author: | ||
# name: "Exoscale Tooling" | ||
# email: "[email protected]" | ||
# commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}" | ||
# homepage: "https://github.com/exoscale/cli" | ||
# license: "Apache License 2.0" | ||
# repository: | ||
# owner: exoscale | ||
# name: cli | ||
# branch: master | ||
|
||
publishers: | ||
- name: aptly | ||
env: | ||
- AWS_ACCESS_KEY_ID={{ .Env.EXOSCALE_API_KEY }} | ||
- AWS_SECRET_ACCESS_KEY={{ .Env.EXOSCALE_API_SECRET }} | ||
ids: | ||
- nfpms | ||
cmd: ./go.mk/scripts/publish-deb-artifact-to-sos.sh {{ .ArtifactPath }} exoscale-packages deb/cli 10 | ||
# - name: aptly | ||
# env: | ||
# - AWS_ACCESS_KEY_ID={{ .Env.EXOSCALE_API_KEY }} | ||
# - AWS_SECRET_ACCESS_KEY={{ .Env.EXOSCALE_API_SECRET }} | ||
# ids: | ||
# - nfpms | ||
# cmd: ./go.mk/scripts/publish-deb-artifact-to-sos.sh {{ .ArtifactPath }} exoscale-packages deb/cli 10 |