Update README: use awk instead of jq
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
903ad98289
commit
2b13c16d2f
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ steps:
|
||||||
from_secret: vault_secret_id
|
from_secret: vault_secret_id
|
||||||
commands:
|
commands:
|
||||||
- export VAULT_TOKEN=$(vault write -field=token auth/approle/login role_id=$VAULT_ROLE_ID secret_id=$VAULT_SECRET_ID)
|
- export VAULT_TOKEN=$(vault write -field=token auth/approle/login role_id=$VAULT_ROLE_ID secret_id=$VAULT_SECRET_ID)
|
||||||
- vault kv get -format=json projects/<project>/<env> | jq -r '.data.data | to_entries[] | "export \(.key)=\(.value)"' > .env.vault
|
- vault kv get -format=table projects/<project>/<env> | awk '/^====== Data/,0 { if ($1 != "======" && $1 != "Key" && $1 != "---") print "export "$1"="$2 }' > .env.vault
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: node:20
|
image: node:20
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue