Files
secret/script/vault-start.sh
maze c00bca7ba5
Some checks failed
Test / tests (darwin-amd64) (push) Successful in 20s
Test / tests (linux-amd64) (push) Successful in 25s
Run Gosec / tests (push) Successful in 50s
Test / tests (linux-arm64) (push) Successful in 2m58s
Test / tests (windows-amd64) (push) Failing after 15s
Move scripts out of the workflow itself
2025-09-09 15:09:00 +02:00

17 lines
475 B
Bash
Executable File

#!/bin/bash
# Start Vault server in background
echo "🔐 Starting Hashicorp Vault development server"
vault server -dev -dev-root-token-id=root -dev-listen-address=127.0.0.1:8200 -dev-tls > vault.log 2>&1 &
VAULT_PID=$!
echo $VAULT_PID > vault.pid
sleep 3
export VAULT_SKIP_VERIFY=true
if ! vault status; then
echo "❌ Vault failed to start. Logs ($(wc -l vault.log) lines):"
cat vault.log
exit 1
fi
echo "✅ Vault started successfully with PID: $VAULT_PID"