Skip to content

Commit

Permalink
Ignore exit code from vault
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Puehringer <[email protected]>
  • Loading branch information
lukpueh committed Apr 29, 2024
1 parent 1c5e638 commit 0c77fca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/scripts/init-vault.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash

vault server -dev -dev-root-token-id="${VAULT_TOKEN}" &
# Start vault in background. `|| true` eats the non-zero exit code, when the
# background process is killed, so that it does not fail the Github Action.
{ vault server -dev -dev-root-token-id="${VAULT_TOKEN}" & } || true

until vault status
do
Expand Down

0 comments on commit 0c77fca

Please sign in to comment.