From f263d0075c8a45c9c47359d27deb5b63b6e0fb7a Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 9 Jul 2024 21:47:21 +0200 Subject: [PATCH] ci: fix vault-pass secret --- .woodpecker/ansible-lint.yml | 2 +- .woodpecker/ansible-playbook.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.woodpecker/ansible-lint.yml b/.woodpecker/ansible-lint.yml index 1b2bc14a..f6bb9ad3 100644 --- a/.woodpecker/ansible-lint.yml +++ b/.woodpecker/ansible-lint.yml @@ -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 diff --git a/.woodpecker/ansible-playbook.yml b/.woodpecker/ansible-playbook.yml index e56d854d..ddfe8fb2 100644 --- a/.woodpecker/ansible-playbook.yml +++ b/.woodpecker/ansible-playbook.yml @@ -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