neilhanlon.me/.woodpecker.yml

27 lines
541 B
YAML
Raw Normal View History

2022-11-11 21:14:34 +00:00
---
branches: main
clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
pipeline:
build:
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
commands:
- hugo
publish:
2022-11-12 03:30:37 +00:00
image: git.shrug.pw/neil/containers/woodpecker-ci:latest
2022-11-12 12:52:21 +00:00
secrets: [ssh_key]
2022-11-12 03:35:16 +00:00
environment:
- GIT_AUTHOR_NAME="Woody the Woodpecker"
- GIT_AUTHOR_EMAIL=ci@shrug.pw
2022-11-11 21:14:34 +00:00
commands:
2022-11-12 12:54:22 +00:00
- mkdir -p ~/.ssh/
- echo "$SSH_KEY" > ~/.ssh/id_rsa
2022-11-12 13:01:54 +00:00
- cat ~/.ssh/id_rsa
2022-11-11 21:16:49 +00:00
- bash deploy.sh