~fabrixxm/sito

sito/.build.yml -rw-r--r-- 874 bytes
9a12e87dfabrixxm Add favicon 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
image: archlinux
packages:
  - python
  - ruby-sass
  - python-pillow
  - python-markdown
  - pelican
  - rsync
sources:
  - https://git.sr.ht/~fabrixxm/sito
environment:
  deploy: deploy@gl-como.it
  remotefolder: /home/glcomo/html/gl-como.it/v2015
  sshopts: ssh -o StrictHostKeyChecking=no -p 1113
  rsyncopts: --group --owner --chown=deploy:sito -rP
secrets:
  -  3c45bf76-45cf-4423-9c58-d264f023578d
tasks:
  - build: |
      cd sito
      make publish
      # if not on master branch skip the next stages
      if [ "$(git rev-parse origin/master)" != "$(git rev-parse HEAD)" ]; then \
        complete-build; \
      fi
  - deploy: |
      cd sito
      rsync --rsh="$sshopts" $rsyncopts output/ deploy@gl-como.it:$remotefolder/
      $sshopts deploy@gl-como.it find $remotefolder -exec "chmod g+w {} \;"
      $sshopts deploy@gl-como.it chown -R :sito $remotefolder