Fix 1 for woodpcker

This commit is contained in:
Shaun Hoffer 2024-06-01 19:16:26 -04:00
parent c128a4d8b4
commit 866f709fc0

@ -1,21 +1,14 @@
pipeline: steps:
build: buildsite:
# Use the official jekyll build container image: ruby
image: node
secrets: [ cbtoken, cbmail ]
commands: commands:
# Avoid permission denied errors
- chmod -R a+w . - chmod -R a+w .
# Set up git in a working way
- git config --global --add safe.directory /woodpecker/src/git.ttnrtsite.me/TTNRT/pages.git/public
- git config --global user.email "$CBMAIL"
- git config --global user.name "CI Builder"
# clone and move the target repo
- git clone https://git.ttnrtsite.me/TTNRT/pages.git - git clone https://git.ttnrtsite.me/TTNRT/pages.git
- cd pages - cd pages
- apt update
- apt install ruby ruby-dev git curl -y -f
- gem install bundler - gem install bundler
- bundle install - bundle install
- bundle exec jekyll build - bundle exec jekyll build
pushsite:
image: node
commands:
- npx @getmeli/cli upload --url https://meli.ttnrtsite.me --site f8b4282b-3f0d-4c41-a416-4f65172aef21 --token 2577f1f5cbe808de165ad493c95a595df7ac7d4c92d42fed4e6df6b36d852016 _site - npx @getmeli/cli upload --url https://meli.ttnrtsite.me --site f8b4282b-3f0d-4c41-a416-4f65172aef21 --token 2577f1f5cbe808de165ad493c95a595df7ac7d4c92d42fed4e6df6b36d852016 _site