pipeline:
  build:
    image: plugins/hugo
    validate: false
    url: https://fr1nge.xyz
  compress:
    image: alpine:latest
    commands:
      - apk --no-cache update
      - apk add make
      - make -C public/ -f ../Makefile
  deploy:
    image: drillster/drone-rsync
    hosts: [ "192.168.1.5" ]
    port: 3471
    target: /var/www/html/fr1nge.xyz
    source: public/*
    key:
      from_secret: rsync_key
    user: root
    secrets: [ rsync_key ]
