builds.sr.ht deploy trigger
This commit is contained in:
parent
eaecddce79
commit
caf314d3ca
2 changed files with 28 additions and 0 deletions
26
.builds/pages.yml
Normal file
26
.builds/pages.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
image: archlinux
|
||||
packages:
|
||||
- python-poetry
|
||||
- nodejs
|
||||
- npm
|
||||
- rsync
|
||||
sources:
|
||||
- https://git.sr.ht/~fmartingr/fmartingr.com
|
||||
secrets:
|
||||
- f577557b-ed7b-4ce4-a103-d9c8e692c09b
|
||||
- 7902c1da-f243-4bb3-a397-dc1c98faa823
|
||||
- c82cd104-227b-4745-89ae-960b5f7c82ae
|
||||
tasks:
|
||||
# https://todo.sr.ht/~sircmpwn/builds.sr.ht/170
|
||||
- check-branch: |
|
||||
cd fmartingr.com
|
||||
if [ "$(git rev-parse master)" != "$(git rev-parse HEAD)" ]; then \
|
||||
complete-build; \
|
||||
fi
|
||||
- prepare: |
|
||||
cd fmartingr.com
|
||||
python -V
|
||||
make setup
|
||||
- deploy: |
|
||||
cd fmartingr.com
|
||||
poetry run make deploy
|
Loading…
Add table
Add a link
Reference in a new issue