ci: fix vault-pass secret
Some checks failed
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/push/ansible-lint Pipeline was successful
ci/woodpecker/push/ansible-playbook Pipeline failed

This commit is contained in:
Michael Grote 2024-07-09 21:47:21 +02:00
parent 8f2fd7acde
commit f263d0075c
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ steps:
image: quay.io/ansible/creator-ee:v24.2.0
commands:
- ansible-lint --version
- echo $${VAULTPASS} > ./vault-pass.yml # nach des Secret in Großschreibung
- echo $${VAULTPASS} | base64 -d > ./vault-pass.yml # Name des Secrets in Großschreibung
- ansible-galaxy install -r requirements.yaml
- ansible-lint --force-color --format pep8
# https://woodpecker-ci.org/docs/usage/secrets#use-secrets-in-commands

View file

@ -6,7 +6,7 @@ steps:
ansible-playbook:
image: quay.io/ansible/creator-ee:v24.2.0
commands:
- echo $${VAULTPASS} > ./vault-pass.yml # nach des Secret in Großschreibung
- echo $${VAULTPASS} | base64 -d > ./vault-pass.yml # Name des Secrets in Großschreibung
- ansible-galaxy install -r requirements.yaml
- echo $${SSHKEY} | base64 -d > ./id_ed25519 # woodpecker verschluckt linebreakes, daher mit base64 -w0 "kodiert"
- chmod 0400 ./id_ed25519