test-proj/.woodpecker.yml
Morgan McMillian 17f011e979
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
test notifications
2023-03-09 11:11:08 -08:00

30 lines
910 B
YAML

pipeline:
test:
image: alpine:latest
secrets: [ ssh_key ]
environment:
- ANSIBLE_PRIVATE_KEY=$SSH_KEY
- ANSIBLE_HOST_KEY_CHECKING=False
commands:
- apk add --update ansible
- printf "$SSH_KEY" > /tmp/privateKey
- chmod 600 /tmp/privateKey
- sha256sum /tmp/privateKey
- ansible-playbook --user igor --inventory hosts.ini --private-key /tmp/privateKey main.yml
notify:
image: plugins/matrix
settings:
homeserver: https://pnut-matrix.dreamfall.space
roomid: qjafxbUILIiwzyJWqf:mcmillian.ems.host
username: woodpeckerci
password:
from_secret: matrix_secret
environment:
- DRONE_BUILD_STATUS=$CI_BUILD_STATUS
- DRONE_REPO_OWNER=$CI_REPO_OWNER
- DRONE_REPO_NAME=$CI_REPO_NAME
- DRONE_COMMIT=$CI_COMMIT_REF
- DRONE_BUILD_LINK=$CI_BUILD_LINK
- DRONE_BRANCH=$CI_COMMIT_BRANCH