blog/.woodpecker.yml

22 lines
747 B
YAML
Raw Normal View History

2024-06-11 12:38:31 +02:00
pipeline:
build:
image: debian:bookworm
secrets: [ token, mail ]
commands:
- apt update
- apt install -y ruby-full build-essential git
- gem install bundler --verbose
- git config --global --add safe.directory '*'
- git config --global user.email "$MAIL"
- git config --global user.name "CI Builder"
- git clone https://git.chapoline.me/chapeau/blog-static.git _site
# - chmod -R a+w .
- cd _site
- git remote set-url origin https://$TOKEN@git.chapoline.me/chapeau/blog-static.git
- cd ..
- bundle install --retry 4
- bundle exec jekyll build
2024-06-27 08:58:03 +02:00
- cd _site
2024-06-11 12:38:31 +02:00
- git add --all
- git commit -m "Build"
2024-06-27 08:58:03 +02:00
- git push --set-upstream origin main