mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
[deploy-opentofu]
This commit is contained in:
@ -136,12 +136,14 @@ jobs:
|
|||||||
name=$(echo "$secret" | jq -r '.name')
|
name=$(echo "$secret" | jq -r '.name')
|
||||||
type=$(echo "$secret" | jq -r '.type')
|
type=$(echo "$secret" | jq -r '.type')
|
||||||
output=$(echo "$secret" | jq -r '.output')
|
output=$(echo "$secret" | jq -r '.output')
|
||||||
|
echo "$name $type $output"
|
||||||
item_id=$(bw get item "$name" | jq -r '.id')
|
item_id=$(bw get item "$name" | jq -r '.id')
|
||||||
|
echo "$item_id"
|
||||||
if [ "$type" == "attachment" ]; then
|
if [ "$type" == "attachment" ]; then
|
||||||
|
echo "attachment get"
|
||||||
bw get attachment "$output" --itemid "$item_id" --output "$output"
|
bw get attachment "$output" --itemid "$item_id" --output "$output"
|
||||||
elif [ "$type" == "note" ]; then
|
elif [ "$type" == "note" ]; then
|
||||||
|
echo "note get"
|
||||||
bw get item "$name" | jq -r '.notes' > "$output"
|
bw get item "$name" | jq -r '.notes' > "$output"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user