mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(teller) (#6140)
* fix(teller) closes #6113 closes #6114 * +openssl+rust^1.78
This commit is contained in:
parent
0adcade583
commit
f8ca792f68
1 changed files with 32 additions and 10 deletions
|
@ -5,21 +5,28 @@ distributable:
|
||||||
versions:
|
versions:
|
||||||
github: SpectralOps/teller
|
github: SpectralOps/teller
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
openssl.org: ^1.1
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
go.dev: ^1.21
|
go.dev: ^1.21
|
||||||
|
rust-lang.org: ^1.78
|
||||||
script:
|
script:
|
||||||
go build $ARGS -ldflags="$LDFLAGS" .
|
- run: go build $GO_ARGS -ldflags="$GO_LDFLAGS" .
|
||||||
|
if: <2
|
||||||
|
- run: cargo install --locked --path teller-cli --root {{prefix}}
|
||||||
|
if: '>=2'
|
||||||
env:
|
env:
|
||||||
COMMIT_SHA: "$(git describe --always --abbrev=8 --dirty)"
|
COMMIT_SHA: '$(git describe --always --abbrev=8 --dirty)'
|
||||||
VERSION_DATE: "$(date -u +%FT%TZ)"
|
VERSION_DATE: '$(date -u +%FT%TZ)'
|
||||||
ARGS:
|
GO_ARGS:
|
||||||
- -trimpath
|
- -trimpath
|
||||||
- -o={{prefix}}/bin/teller
|
- -o={{prefix}}/bin/teller
|
||||||
linux:
|
linux:
|
||||||
ARGS:
|
GO_ARGS:
|
||||||
- -buildmode=pie
|
- -buildmode=pie
|
||||||
LDFLAGS:
|
GO_LDFLAGS:
|
||||||
- -s
|
- -s
|
||||||
- -w
|
- -w
|
||||||
- -X main.version={{version}}
|
- -X main.version={{version}}
|
||||||
|
@ -30,9 +37,11 @@ provides:
|
||||||
- bin/teller
|
- bin/teller
|
||||||
|
|
||||||
test:
|
test:
|
||||||
- |
|
- run: |
|
||||||
echo 'foo: var' > test.env
|
echo 'foo: var' > test.env
|
||||||
- run: teller -c $FIXTURE show 2>&1 | grep 'foo'
|
teller -c $FIXTURE show 2>&1 | grep 'foo'
|
||||||
|
teller version | grep {{version}}
|
||||||
|
if: <2
|
||||||
fixture:
|
fixture:
|
||||||
content: |
|
content: |
|
||||||
project: test
|
project: test
|
||||||
|
@ -43,4 +52,17 @@ test:
|
||||||
env_sync:
|
env_sync:
|
||||||
path: test.env
|
path: test.env
|
||||||
extname: .yml
|
extname: .yml
|
||||||
- teller version | grep {{version}}
|
- run: |
|
||||||
|
echo 'foo=var' > test.env
|
||||||
|
teller -c $FIXTURE show 2>&1 | grep 'foo'
|
||||||
|
test "$(teller --version)" = "teller {{version}}"
|
||||||
|
if: '>=2'
|
||||||
|
fixture:
|
||||||
|
content: |
|
||||||
|
providers:
|
||||||
|
dot_1:
|
||||||
|
kind: dotenv
|
||||||
|
maps:
|
||||||
|
- id: foo
|
||||||
|
path: test.env
|
||||||
|
extname: .yml
|
||||||
|
|
Loading…
Reference in a new issue