ci: set ssh-key for deployment
This commit is contained in:
parent
50a99b268a
commit
9fa3a2fac6
1 changed files with 3 additions and 1 deletions
|
@ -9,9 +9,11 @@ steps:
|
||||||
- ansible-lint --version
|
- ansible-lint --version
|
||||||
- echo $${VAULTPASS} > ./vault-pass.yml # nach des Secret in Großschreibung
|
- echo $${VAULTPASS} > ./vault-pass.yml # nach des Secret in Großschreibung
|
||||||
- ansible-galaxy install -r requirements.yaml
|
- ansible-galaxy install -r requirements.yaml
|
||||||
|
- echo $${SSHKEY} > id_ed25519
|
||||||
|
- chmod 0400 id_ed25519
|
||||||
- ansible-playbook playbooks/2_all.yml playbooks/3_service/* --limit production
|
- ansible-playbook playbooks/2_all.yml playbooks/3_service/* --limit production
|
||||||
# https://woodpecker-ci.org/docs/usage/secrets#use-secrets-in-commands
|
# https://woodpecker-ci.org/docs/usage/secrets#use-secrets-in-commands
|
||||||
secrets: [vaultpass]
|
secrets: [vaultpass, sshkey]
|
||||||
when:
|
when:
|
||||||
- event: [push, pull_request_closed]
|
- event: [push, pull_request_closed]
|
||||||
branch: master
|
branch: master
|
||||||
|
|
Loading…
Reference in a new issue