diff --git a/.woodpecker.yml b/.woodpecker.yml index 158c650..21f9068 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,10 +1,9 @@ pipeline: - test: - image: git.dreamfall.space/thrrgilag/ansible-builder - secrets: [ igor_key ] - commands: - - echo $IGOR_KEY > /tmp/privateKey - - echo >> /tmp/privateKey - - chmod 600 /tmp/privateKey - - wc -l /tmp/privateKey - - ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -v --inventory hosts.ini --private-key /tmp/privateKey --user igor main.yml + publish: + image: plugins/ansible + secrets: [ ssh_key ] + settings: + playbook: main.yaml + inventory: hosts.ini + user: igor + private_key: $SSH_KEY