This commit is contained in:
Vassiliy Yegorov
2022-08-24 13:06:22 +07:00
parent e78851eba6
commit a7c637fcac

View File

@@ -9,14 +9,16 @@ read_secrets:
- echo $PASSWORD
when: manual
read_secrets_native:
variables:
VAULT_ADDR: http://vault.bildme.ru
VAULT_AUTH_ROLE: gitlabci-role
secrets:
PASSWORD:
vault: secret/gitlab/db1
file: false
script:
- echo $PASSWORD
when: manual
## GitLab Premium supports read access to a HashiCorp Vault, and enables you to use Vault secrets in a CI job.
# read_secrets_native:
# variables:
# VAULT_ADDR: http://vault.bildme.ru
# VAULT_AUTH_ROLE: gitlabci-role
# secrets:
# PASSWORD:
# vault: secret/gitlab/db1
# file: false
# script:
# - echo $PASSWORD
# when: manual