From d234c122a039a1a4014da73b886b6d2e788f83ea Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Thu, 9 Mar 2023 06:13:59 -0800 Subject: [PATCH] test env --- .woodpecker.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 7bd7eda..fae1a6b 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,20 +1,11 @@ pipeline: - test: - image: git.dreamfall.space/thrrgilag/ansible-builder - secrets: [ ssh_key ] - commands: - - echo $SSH_KEY > /tmp/privateKey - - chmod 600 /tmp/privateKey - - wc -l /tmp/privateKey - - wc -c /tmp/privateKey - - tail /tmp/privateKey - - ssh -o "StrictHostKeyChecking=no" -i /tmp/privateKey igor@vimes.dreamfall.space "cat /ec/os-release" - publish: image: plugins/ansible secrets: [ ssh_key ] + environment: + - ANSIBLE_HOST_KEY_CHECKING=False + - PLUGIN_PRIVATE_KEY=$SSH_KEY settings: playbook: main.yml inventory: hosts.ini user: igor - private_key: $SSH_KEY