pantry/projects/circleci.com/package.yml
Jacob Heider d0124bf5e9 fix(circleci)
closes #3999
2023-11-08 18:27:18 -05:00

32 lines
710 B
YAML

distributable:
url: https://github.com/CircleCI-Public/circleci-cli/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
versions:
github: CircleCI-Public/circleci-cli/tags
strip: /^v/
build:
dependencies:
go.dev: '*'
script: |
go build -ldflags="$LDFLAGS" -o {{prefix}}/bin/circleci
env:
LDFLAGS:
- -s
- -w
- -X github.com/CircleCI-Public/circleci-cli/version.packageManager=tea
- -X github.com/CircleCI-Public/circleci-cli/version.Version={{version}}
linux:
LDFLAGS:
- -buildmode=pie
provides:
- bin/circleci
test:
script: |
circleci version
echo "{version: 2.1}" > .circleci.yml
circleci config pack .circleci.yml