mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 07:05:36 +01:00
Fix vault usage
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
response=`curl -X 'GET' "https://$VAULT_HOST/v1/$VAULT_SECRET_PATH" -s \
|
||||
-H 'accept: application/json' \
|
||||
-H "X-Vault-Token: $VAULT_TOKEN"`
|
||||
|
||||
echo "$(echo "$response" | jq -r '.data.data | to_entries | map("\(.key)='\''\(.value)'\''") | .[]')"
|
||||
@@ -1,5 +1,3 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
export $(/env.sh)
|
||||
|
||||
/opt/venv/bin/python main.py $1
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
export $(/env.sh)
|
||||
|
||||
/opt/venv/bin/taskiq scheduler core.broker:scheduler modules.tasks
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
export $(/env.sh)
|
||||
|
||||
printenv
|
||||
|
||||
/opt/venv/bin/taskiq worker core.broker:broker modules.tasks
|
||||
|
||||
Reference in New Issue
Block a user