Exit if success
Some checks failed
Some checks failed
This commit is contained in:
@@ -111,7 +111,7 @@ jobs:
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
$isReady = $true
|
||||
Write-Output "Vault server is ready!"
|
||||
break
|
||||
exit 0
|
||||
}
|
||||
} catch {
|
||||
# Ignore errors during startup
|
||||
@@ -130,7 +130,8 @@ jobs:
|
||||
exit 1
|
||||
}
|
||||
|
||||
- name: Setup Vault test data
|
||||
- name: Setup Vault test data (on Unix)
|
||||
if: matrix.arch != 'windows-amd64'
|
||||
env:
|
||||
TEST_VAULT_KEY: ${{ vars.TEST_VAULT_KEY }}
|
||||
TEST_VAULT_VALUE: ${{ vars.TEST_VAULT_VALUE }}
|
||||
@@ -147,6 +148,23 @@ jobs:
|
||||
vault secrets enable transit
|
||||
vault write -f transit/keys/test
|
||||
|
||||
- name: Setup Vault test data (on Windows)
|
||||
if: matrix.arch == 'windows-amd64'
|
||||
env:
|
||||
VAULT_ADDR: "https://127.0.0.1:8200"
|
||||
VAULT_TOKEN: root
|
||||
VAULT_SKIP_VERIFY: "true"
|
||||
shell: pwsh
|
||||
run: |
|
||||
# Populate our test secrets
|
||||
Write-Output "🔐 Populating test secrets:"
|
||||
& "./vault.exe" vault kv put "${{ vars.TEST_VAULT_KEY }}" data="${{ vars.TEST_VAULT_VALUE }}"
|
||||
|
||||
# Populate our test transit backend with key
|
||||
Write-Output "🔐 Populating test transit backend:"
|
||||
& "./vault.exe" vault secrets enable transit
|
||||
& "./vault.exe" vault write -f transit/keys/test
|
||||
|
||||
- name: Vet
|
||||
run: go vet -v ./...
|
||||
|
||||
|
Reference in New Issue
Block a user