blog/.woodpecker.yml
chapeau 386c46e35a
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Add CI
2024-06-11 13:49:16 +02:00

21 lines
No EOL
703 B
YAML

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
- git add --all
- git commit -m "Build"
- git push