2024-03-12 20:59:07 +01:00
|
|
|
# SPDX-FileCopyrightText: 2021-2024 Winni Neessen <wn@neessen.dev>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
2024-03-12 20:13:41 +01:00
|
|
|
|
|
|
|
version: 1
|
|
|
|
|
|
|
|
before:
|
|
|
|
hooks:
|
2024-03-13 22:42:30 +01:00
|
|
|
- go test -cover -race -shuffle=on
|
2024-03-12 20:13:41 +01:00
|
|
|
- go mod tidy
|
2024-03-13 22:36:46 +01:00
|
|
|
- go mod download
|
|
|
|
- go mod verify
|
2024-03-12 20:13:41 +01:00
|
|
|
|
|
|
|
builds:
|
|
|
|
- env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
- darwin
|
|
|
|
- freebsd
|
|
|
|
- openbsd
|
|
|
|
- netbsd
|
2024-03-13 22:36:46 +01:00
|
|
|
goarch:
|
|
|
|
- 386
|
|
|
|
- arm
|
|
|
|
- arm64
|
|
|
|
- amd64
|
|
|
|
- ppc64le
|
|
|
|
- s390x
|
2024-03-13 22:42:30 +01:00
|
|
|
- mips
|
|
|
|
- mips64
|
|
|
|
- mipsle
|
|
|
|
- mips64le
|
2024-03-13 22:36:46 +01:00
|
|
|
goarm:
|
|
|
|
- 6
|
|
|
|
goamd64:
|
|
|
|
- v1
|
2024-03-12 20:13:41 +01:00
|
|
|
main: ./cmd/apg
|
|
|
|
binary: apg
|
2024-03-13 22:36:46 +01:00
|
|
|
ldflags:
|
|
|
|
- -w -s -extldflags "-static"
|
2024-03-12 20:13:41 +01:00
|
|
|
|
|
|
|
archives:
|
|
|
|
- format: tar.gz
|
|
|
|
format_overrides:
|
|
|
|
- goos: windows
|
|
|
|
format: zip
|
|
|
|
|
|
|
|
changelog:
|
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
|
|
|
- "^docs:"
|
|
|
|
- "^test:"
|
|
|
|
|
|
|
|
nfpms:
|
|
|
|
- vendor: Winni Neessen
|
2024-03-13 22:36:46 +01:00
|
|
|
homepage: https://src.neessen.cloud/wneessen/apg-go
|
2024-03-12 20:13:41 +01:00
|
|
|
maintainer: Winni Neessen <wn@neessen.dev>
|
2024-03-13 22:36:46 +01:00
|
|
|
description: |-
|
|
|
|
A "Automated Password Generator"-clone written in Go
|
|
|
|
license: MIT
|
2024-03-12 20:13:41 +01:00
|
|
|
formats:
|
|
|
|
- apk
|
|
|
|
- deb
|
|
|
|
- rpm
|
|
|
|
- termux.deb
|
|
|
|
- archlinux
|
2024-03-13 22:36:46 +01:00
|
|
|
file_name_template: >-
|
|
|
|
{{- trimsuffix .ConventionalFileName .ConventionalExtension -}}
|
|
|
|
{{- if and (eq .Arm "6") (eq .ConventionalExtension ".deb") }}6{{ end -}}
|
|
|
|
{{- if not (eq .Amd64 "v1")}}{{ .Amd64 }}{{ end -}}
|
|
|
|
{{- .ConventionalExtension -}}
|
2024-03-12 20:13:41 +01:00
|
|
|
|
|
|
|
dmg:
|
|
|
|
- replace: true
|
|
|
|
|
|
|
|
universal_binaries:
|
2024-03-13 22:36:46 +01:00
|
|
|
- replace: true
|
2024-03-12 21:55:08 +01:00
|
|
|
|
|
|
|
report_sizes: true
|
|
|
|
|
|
|
|
signs:
|
2024-03-13 22:36:46 +01:00
|
|
|
- artifacts: all
|
2024-03-12 22:05:19 +01:00
|
|
|
stdin: "{{ .Env.GPG_PASSWORD }}"
|
|
|
|
args: ["-u", "wn@neessen.dev", "--output", "${signature}", "--detach-sign", "${artifact}"]
|
2024-03-12 21:55:08 +01:00
|
|
|
|
|
|
|
sboms:
|
|
|
|
- artifacts: archive
|
|
|
|
|
|
|
|
gitea_urls:
|
|
|
|
api: https://src.neessen.cloud/api/v1
|
|
|
|
download: https://src.neessen.cloud
|
2024-03-13 21:30:13 +01:00
|
|
|
|
2024-03-13 22:36:46 +01:00
|
|
|
gomod:
|
|
|
|
mod: mod
|
2024-03-13 23:54:02 +01:00
|
|
|
|
|
|
|
dockers:
|
|
|
|
- image_templates:
|
|
|
|
- "wneessen/apg-go:{{ .Tag }}"
|
|
|
|
- "wneessen/apg-go:v{{ .Major }}"
|
|
|
|
- "wneessen/apg-go:v{{ .Major }}.{{ .Minor }}"
|
2024-03-13 23:59:08 +01:00
|
|
|
- "wneessen/apg-go:latest"
|
|
|
|
build_flag_templates:
|
|
|
|
- "--pull"
|
|
|
|
- "--network=host"
|
|
|
|
- "--label=org.opencontainers.image.created={{.Date}}"
|
|
|
|
- "--label=org.opencontainers.image.title={{.ProjectName}}"
|
|
|
|
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
|
|
|
- "--label=org.opencontainers.image.version={{.Version}}"
|