mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
+aiac
This commit is contained in:
parent
05af9530ab
commit
9098f4daad
1 changed files with 37 additions and 0 deletions
37
projects/github.com/gofireflyio/aiac/package.yml
Normal file
37
projects/github.com/gofireflyio/aiac/package.yml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/gofireflyio/aiac/archive/refs/tags/v{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: gofireflyio/aiac
|
||||||
|
strip: /^v /
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
# __DEP__: __DEP_VERSION__
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
go.dev: ^1.18
|
||||||
|
# __DEP__: __DEP_VERSION__
|
||||||
|
script: |
|
||||||
|
go build -v -ldflags="$LDFLAGS"
|
||||||
|
mkdir -p "{{ prefix }}"/bin
|
||||||
|
mv aiac "{{ prefix }}"/bin
|
||||||
|
env:
|
||||||
|
LDFLAGS:
|
||||||
|
[-s, -w, "-X=main.Version={{version}}"]
|
||||||
|
linux:
|
||||||
|
# or segmentation fault
|
||||||
|
# fix found here https://github.com/docker-library/golang/issues/402#issuecomment-982204575
|
||||||
|
LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/aiac
|
||||||
|
|
||||||
|
# FIXME: not much to test without an API key
|
||||||
|
test: |
|
||||||
|
aiac --help
|
||||||
|
if test ! -z $OPENAPI_KEY; then
|
||||||
|
aiac --api-key $OPENAPI_KEY get bash api wrapper
|
||||||
|
fi
|
Loading…
Reference in a new issue