~avalos/devault-css

devault-css/.build.yml -rw-r--r-- 574 bytes
f1ef5a23avalos t 5 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
image: alpine/edge
packages:
  - nodejs
  - npm
  - rsync
sources:
  - https://git.sr.ht/~avalos/devault-css
environment:
  deploy: ec2-user@avalos.me
  folder: /var/www/devaultcss.avalos.me/public_html/
secrets:
  - 44deb6d9-1368-429f-a180-ac8f3cf0efc6
tasks:
  - setup: |
      sudo npm i -g sass
  - build : |
      cd devault-css
      sass scss/base.scss dist/css/base.css
  - deploy: |
      cd devault-css
      sshopts="ssh -oStrictHostKeyChecking=no"
      rsync --rsh="$sshopts" -rP index.html $deploy:$folder
      rsync --rsh="$sshopts" -rP dist $deploy:$folder