Skip to content

Commit

Permalink
revertable temporary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterp committed Oct 11, 2023
1 parent 6b4a132 commit c060071
Showing 1 changed file with 75 additions and 75 deletions.
150 changes: 75 additions & 75 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -59,7 +59,7 @@ nfpms:
license: Apache 2.0
id: nfpms
formats:
- deb
# - deb
- rpm
contents:
# manpages
Expand All @@ -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

0 comments on commit c060071

Please sign in to comment.