]> git.r.bdr.sh - rbdr/r.bdr.sh/blobdiff - .build.yml
CD out of documents
[rbdr/r.bdr.sh] / .build.yml
index 2cb3ef834ba882dd203ad92c361705587c189d96..98f6a7a29522ce308226c40cbd703a8e3c343c51 100644 (file)
@@ -1,13 +1,23 @@
-image: alpine/latest
-
+image: archlinux
 packages:
 packages:
-  - build-base
-  - docker
-  - docker-compose
-
+  - make
+  - rust
+  - rsync
 sources:
 sources:
-  - https://git.sr.ht/~rbdr/unlimited.pizza
-
+  - git@git.sr.ht:~rbdr/page
+  - git@git.sr.ht:~rbdr/unlimited.pizza
+secrets:
+  - 21c73f87-a944-4560-a616-2dfd558c72da
 tasks:
 tasks:
-  - make upload
-
+  - build_page: |
+      cd page
+      make -e profile=release
+      cd ..
+  - generate_page: |
+      cd unlimited.piza
+      ../page/target/release/page
+      cd ..
+  - sync_html: |
+      rsync -r unlimited.pizza_html/ deploy@barthes.unlimited.pizza:/var/www/www
+  - sync_gemini: |
+      rsync -r unlimited.pizza_gemini/ deploy@barthes.unlimited.pizza:/var/gemini/content