freehold-cottage/.build.yml

26 lines
526 B
YAML
Raw Normal View History

2022-11-12 14:36:45 +00:00
image: debian/stable
packages:
- ruby-full
- ruby-dev
- nodejs
2022-11-12 15:20:33 +00:00
- rsync
2022-11-12 14:36:45 +00:00
sources:
- https://git.sr.ht/~stfn/freehold-cottage
environment:
deploy: sourcehut@stefn.co.uk:freehold-cottage
secrets:
- 312fd5eb-95ad-4f33-9c83-fd5664236be4
tasks:
- setup: |
sudo gem install bundler
- build: |
cd freehold-cottage
bundle install
bundle exec jekyll build
- deploy: |
cd freehold-cottage
2022-11-12 15:20:33 +00:00
ssh_opts="ssh -o StrictHostKeyChecking=no"
rsync --rsh="$sshopts" -rP _site/ $deploy
2022-11-12 14:36:45 +00:00