From 3895387b8a6b1c553b0f0e1a549860254dfad3da Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Thu, 9 Mar 2023 10:34:40 -0800 Subject: [PATCH] update to build and publish pipelines --- .woodpecker.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 0a19cc4..9427158 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -7,13 +7,19 @@ clone: pipeline: build: image: plugins/hugo + settings: + validate: true publish: - image: plugins/ansible - settings: - playbook: main.yaml - inventory: hosts.ini - syntax_check: true + image: alpine:latest + secrets: [ ssh_key ] + environment: + - ANSIBLE_HOST_KEY_CHECKING=False + commands: + - apk add --update ansible + - printf "$SSH_KEY" > privateKey + - chmod 600 privateKey + - ansible-playbook --user igor --inventory hosts.ini --private-key privateKey main.yaml notify: image: plugins/matrix