mirror of
https://github.com/ivabus/pantry
synced 2024-11-09 18:15:18 +03:00
new file: projects/project-copacetic.github.io/package.yml (#5613)
This commit is contained in:
parent
7397b9a288
commit
41ea752201
37
projects/project-copacetic.github.io/package.yml
Normal file
37
projects/project-copacetic.github.io/package.yml
Normal 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}}
|
Loading…
Reference in a new issue