check / check (pull_request) Successful in 3m35s
A plain `docker build .` stamped `dev`: `.dockerignore` left out `.git` and the Dockerfile defaulted VERSION to `dev`. `.dockerignore` now sends `.git` without `.git/config`. Given no build arguments, the builder stamps `git describe --tags --always` and the commit and date from git, and fails if `.git` is present but yields no version. The empty CHECK_EPOCH refusal is gone so the plain build succeeds. `script/version` now prints `git describe --tags --always --dirty`, so make, the scripts and a plain build agree. `vaultik version` treats the short commit, tag-N-gHASH forms and any version ending in `-dirty` as development builds, so they keep the development-build notice. Model: opus-5-5
68 lines
1.5 KiB
YAML
68 lines
1.5 KiB
YAML
version: 2
|
|
|
|
project_name: vaultik
|
|
|
|
# This repo lives on Gitea, not GitHub. Without this block goreleaser
|
|
# talks to the GitHub API by default and a `goreleaser release` either
|
|
# fails outright or publishes somewhere nobody is looking.
|
|
gitea_urls:
|
|
api: https://git.eeqj.de/api/v1
|
|
download: https://git.eeqj.de
|
|
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
|
|
builds:
|
|
- id: vaultik
|
|
main: ./cmd/vaultik
|
|
binary: vaultik
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
ldflags:
|
|
- -s -w
|
|
- -X 'sneak.berlin/go/vaultik/internal/globals.Version={{ .Version }}'
|
|
- -X 'sneak.berlin/go/vaultik/internal/globals.Commit={{ .Commit }}'
|
|
- -X 'sneak.berlin/go/vaultik/internal/globals.CommitDate={{ slice .CommitDate 0 10 }}'
|
|
|
|
archives:
|
|
- id: default
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
|
formats:
|
|
- tar.gz
|
|
files:
|
|
- LICENSE
|
|
- README.md
|
|
|
|
checksum:
|
|
name_template: "checksums.txt"
|
|
algorithm: sha256
|
|
|
|
# A snapshot is not a release and must not name itself like one. The
|
|
# previous `{{ incpatch .Version }}-next` derived a plausible-looking
|
|
# release number from the last tag -- and with no tags in the repo at
|
|
# all, from goreleaser's fabricated v0.0.0.
|
|
snapshot:
|
|
version_template: "dev-{{ slice .FullCommit 0 12 }}"
|
|
|
|
changelog:
|
|
sort: asc
|
|
use: git
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^test:"
|
|
- "^chore:"
|
|
- "Merge pull request"
|
|
- "Merge branch"
|
|
|
|
release:
|
|
draft: true
|
|
prerelease: auto
|