kind: pipeline name: default platform: os: linux arch: amd64 steps: - name: build image: debian:12-slim commands: - apt -qq update - apt -qq install -y -q rsync pandoc wget git - git submodule update --init --recursive - wget -O /tmp/hugo.deb -nv https://github.com/gohugoio/hugo/releases/download/v0.121.1/hugo_extended_0.121.1_linux-amd64.deb - dpkg --install /tmp/hugo.deb - hugo version - hugo --minify - name: deploy image: appleboy/drone-scp settings: host: 192.168.4.1 target: /opt/${DRONE_REPO_OWNER}/www strip_components: 1 source: public/* username: ${DRONE_REPO_OWNER} key: from_secret: ssh_key passphrase: from_secret: ssh_passphrase environment: PLUGIN_DEBUG: "true" when: branch: - master event: exclude: - pull_request