fix drone: move approle in tempalte
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
vincent 2022-11-29 21:03:12 +01:00
parent 0f15912367
commit 905d8fecd5

View File

@ -92,14 +92,16 @@ job "drone" {
{{ with secret "secrets/data/nomad/droneCI"}}
DRONE_SECRET= {{ .Data.data.DRONE_VAULT_SECRET}}
{{end}}
{{ with secret "secrets/data/nomad/droneCI/approle"}}
VAULT_APPROLE_ID= {{ .Data.data.approleID}}
VAULT_APPROLE_SECRET= {{ .Data.data.approleSecretID}}
{{end}}
VAULT_TOKEN=
VAULT_ADDR=http://active.vault.service.consul:8200
VAULT_AUTH_TYPE=approle
VAULT_TOKEN_TTL=72h
VAULT_TOKEN_RENEWAL=24h
{{ with secret "secrets/data/nomad/droneCI/approle"}}
VAULT_APPROLE_ID= {{ .Data.data.approleID}}
VAULT_APPROLE_SECRET= {{ .Data.data.approleSecretID}}
{{end}}
EOH
destination = "secrets/drone-vault.env"
env = true