diff --git a/.woodpecker.yml b/.woodpecker.yml index 45204c2..c59f4f6 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,20 +1,20 @@ pipeline: test: - image: debian:stable + image: alpine:latest secrets: [ ssh_key ] environment: - 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 - - echo -e $SSH_KEY > /tmp/privateKey + # - apt-get update && apt-get install file -y + - 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