new file: projects/project-copacetic.github.io/package.yml (#5613)

This commit is contained in:
Andrew 2024-03-15 21:24:22 +02:00 committed by GitHub
parent 7397b9a288
commit 41ea752201
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,37 @@
distributable:
url: git+https://github.com/project-copacetic/copacetic.git
ref: ${{version.tag}}
versions:
github: project-copacetic/copacetic
display-name: copa
build:
dependencies:
go.dev: ^1.21
script:
go build $ARGS -ldflags="$LDFLAGS"
env:
COMMIT: $(git describe --always --abbrev=8 --dirty)
DATE: $(date -u +%FT%TZ)
ARGS:
- -trimpath
- -o={{prefix}}/bin/copa
LDFLAGS:
- -s
- -w
- -X github.com/project-copacetic/copacetic/pkg/version.GitVersion={{version.tag}}
- -X github.com/project-copacetic/copacetic/pkg/version.GitCommit=${COMMIT}
- -X github.com/project-copacetic/copacetic/pkg/version.BuildDate=${DATE}
- -X main.version={{version}}
linux:
LDFLAGS:
- -buildmode=pie
provides:
- bin/copa
test:
- copa help | grep 'container patching tool'
- copa --version | grep {{version}}