freehold-cottage/.build.yml

27 lines
549 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 15:27:57 +00:00
- libmagickwand-dev
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"
2022-11-12 15:34:57 +00:00
rsync --rsh="$ssh_opts" -rP _site/ $deploy
2022-11-12 15:20:33 +00:00
2022-11-12 14:36:45 +00:00