From 41ea7522017bb7fedb9281929f40527c8b57309e Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Fri, 15 Mar 2024 21:24:22 +0200 Subject: [PATCH] new file: projects/project-copacetic.github.io/package.yml (#5613) --- .../project-copacetic.github.io/package.yml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 projects/project-copacetic.github.io/package.yml diff --git a/projects/project-copacetic.github.io/package.yml b/projects/project-copacetic.github.io/package.yml new file mode 100644 index 00000000..c0ac027f --- /dev/null +++ b/projects/project-copacetic.github.io/package.yml @@ -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}}