22 lines
No EOL
747 B
YAML
22 lines
No EOL
747 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
|
|
- cd _site
|
|
- git add --all
|
|
- git commit -m "Build"
|
|
- git push --set-upstream origin main |