~avalos/devault-css

e9bfcc537bb2251a328849e316af903d4b0ccf22 — avalos 4 months ago aa57499
Added .build.yaml for build.sr.ht service!
1 files changed, 20 insertions(+), 0 deletions(-)

A .build.yaml
A .build.yaml => .build.yaml +20 -0
@@ 0,0 1,20 @@
image: alpine/edge
packages:
  - sass
  - 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:
  - 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