mirror of
https://github.com/hanzoai/s3-cli.git
synced 2026-10-30 18:23:12 +00:00
Vendor the CLI helpers into pkg/, use hanzos3/go, rename the module to hanzoai/s3-cli, and gate the names in cmd/names_test.go. Claude-Session: https://claude.ai/code/session_011i2AG9nwpiKUCVxAdDzYuU
168 lines
3.6 KiB
YAML
168 lines
3.6 KiB
YAML
project_name: s3-cli
|
|
|
|
release:
|
|
name_template: "Version {{.Version}}"
|
|
disable: true
|
|
github:
|
|
owner: hanzoai
|
|
name: s3-cli
|
|
|
|
env:
|
|
- CGO_ENABLED=0
|
|
- GO111MODULE=on
|
|
|
|
before:
|
|
hooks:
|
|
- make clean
|
|
- go generate ./...
|
|
- go mod tidy
|
|
- go mod download
|
|
|
|
builds:
|
|
-
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
- windows
|
|
- freebsd
|
|
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
- arm
|
|
- ppc64le
|
|
- s390x
|
|
|
|
goarm:
|
|
- 7
|
|
|
|
ignore:
|
|
- goos: darwin
|
|
goarch: arm64
|
|
- goos: darwin
|
|
goarch: arm
|
|
- goos: darwin
|
|
goarch: ppc64le
|
|
- goos: darwin
|
|
goarch: s390x
|
|
- goos: windows
|
|
goarch: arm64
|
|
- goos: windows
|
|
goarch: arm
|
|
- goos: windows
|
|
goarch: ppc64le
|
|
- goos: windows
|
|
goarch: s390x
|
|
- goos: freebsd
|
|
goarch: arm
|
|
- goos: freebsd
|
|
goarch: arm64
|
|
- goos: freebsd
|
|
goarch: ppc64le
|
|
- goos: freebsd
|
|
goarch: s390x
|
|
|
|
flags:
|
|
- -tags=kqueue
|
|
- -trimpath
|
|
|
|
ldflags:
|
|
- "-s -w -X github.com/hanzoai/s3-cli/cmd.Version={{.Version}} -X github.com/hanzoai/s3-cli/cmd.ReleaseTag={{.Tag}} -X github.com/hanzoai/s3-cli/cmd.CommitID={{.FullCommit}} -X github.com/hanzoai/s3-cli/cmd.ShortCommitID={{.ShortCommit}}"
|
|
|
|
archives:
|
|
-
|
|
format: binary
|
|
name_template: "{{ .Binary }}-release/{{ .Os }}-{{ .Arch }}/{{ .Binary }}.{{ .Version }}"
|
|
|
|
nfpms:
|
|
-
|
|
id: s3
|
|
package_name: s3-cli
|
|
vendor: Hanzo AI, Inc.
|
|
homepage: https://hanzo.ai/
|
|
maintainer: [email protected]
|
|
description: The Hanzo S3 client provides a modern alternative to UNIX commands like ls, cat, cp, mirror, diff, find etc. It supports filesystems and Amazon S3 compatible cloud storage service (AWS Signature v2 and v4).
|
|
license: Apache 2.0
|
|
bindir: /usr/bin
|
|
formats:
|
|
- deb
|
|
- rpm
|
|
overrides:
|
|
deb:
|
|
file_name_template: "{{ .Binary }}-release/debs/{{ .ProjectName }}-{{ .Version }}_{{ .Arch }}"
|
|
replacements:
|
|
arm: armv7
|
|
files:
|
|
"NOTICE": "/usr/share/mc/NOTICE"
|
|
"CREDITS": "/usr/share/mc/CREDITS"
|
|
"LICENSE": "/usr/share/mc/LICENSE"
|
|
"README.md": "/usr/share/mc/README.md"
|
|
rpm:
|
|
file_name_template: "{{ .Binary }}-release/rpms/{{ .ProjectName }}-{{ .Version }}.{{ .Arch }}"
|
|
replacements:
|
|
amd64: x86_64
|
|
arm64: aarch64
|
|
arm: armv7
|
|
files:
|
|
"NOTICE": "/usr/share/mc/NOTICE"
|
|
"CREDITS": "/usr/share/mc/CREDITS"
|
|
"LICENSE": "/usr/share/mc/LICENSE"
|
|
"README.md": "/usr/share/mc/README.md"
|
|
|
|
checksum:
|
|
algorithm: sha256
|
|
|
|
signs:
|
|
-
|
|
signature: "${artifact}.asc"
|
|
cmd: "sh"
|
|
args:
|
|
- '-c'
|
|
- 'gpg --quiet --detach-sign -a ${artifact}'
|
|
artifacts: all
|
|
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- '^Update yaml files'
|
|
|
|
dockers:
|
|
-
|
|
goos: linux
|
|
goarch: amd64
|
|
dockerfile: Dockerfile.release
|
|
image_templates:
|
|
- ghcr.io/hanzoai/s3-cli:{{ .Tag }}
|
|
- ghcr.io/hanzoai/s3-cli:latest
|
|
|
|
-
|
|
goos: linux
|
|
goarch: ppc64le
|
|
dockerfile: Dockerfile.ppc64le.release
|
|
image_templates:
|
|
- ghcr.io/hanzoai/s3-cli:{{ .Tag }}-ppc64le
|
|
|
|
-
|
|
goos: linux
|
|
goarch: s390x
|
|
dockerfile: Dockerfile.s390x.release
|
|
image_templates:
|
|
- ghcr.io/hanzoai/s3-cli:{{ .Tag }}-s390x
|
|
|
|
-
|
|
goos: linux
|
|
goarch: arm64
|
|
goarm: ''
|
|
dockerfile: Dockerfile.arm64.release
|
|
image_templates:
|
|
- ghcr.io/hanzoai/s3-cli:{{ .Tag }}-arm64
|
|
|
|
-
|
|
goos: linux
|
|
goarch: arm
|
|
goarm: '7'
|
|
dockerfile: Dockerfile.arm.release
|
|
image_templates:
|
|
- ghcr.io/hanzoai/s3-cli:{{ .Tag }}-arm
|