From 54cf73f88514a47435a26b07a3b8d80db317695b Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Thu, 9 Mar 2023 08:40:09 -0800 Subject: [PATCH] test with alpine --- .woodpecker.yml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index c59f4f6..30d056d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,23 +6,19 @@ pipeline: - ANSIBLE_PRIVATE_KEY=$SSH_KEY - ANSIBLE_HOST_KEY_CHECKING=False commands: - # - apt-get update && apt-get install ansible -y - # - apt-get update && apt-get install file -y + - apk add --update ansible - printf "$SSH_KEY" > /tmp/privateKey - chmod 600 /tmp/privateKey - sha256sum /tmp/privateKey - - cat /tmp/privateKey - - file /tmp/privateKey - - wc -l /tmp/privateKey - # - ansible-playbook --user igor --inventory hosts.ini --private-key /tmp/privateKey main.yml + - ansible-playbook --user igor --inventory hosts.ini --private-key /tmp/privateKey main.yml - publish: - image: plugins/ansible - pull: true - secrets: [ ssh_key ] - settings: - playbook: main.yml - inventory: hosts.ini - connection: paramiko_ssh - user: igor - private_key: $SSH_KEY +# publish: +# image: plugins/ansible +# pull: true +# secrets: [ ssh_key ] +# settings: +# playbook: main.yml +# inventory: hosts.ini +# connection: paramiko_ssh +# user: igor +# private_key: $SSH_KEY