kind: pipeline type: docker name: hugo-build steps: - name: build image: klakegg/hugo:latest commands: - pwd # 查看当前目录 - ls -la # 查看文件列表 - cat hugo.toml # 确认文件存在 - hugo --minify --baseURL https://www.eryang.wang/ - name: deploy image: appleboy/drone-scp settings: host: eryang.wang username: ecs-user password: from_secret: ssh_password port: 22 target: /opt/docker/www/www.eryang.wang/ source: public/* trigger: branch: - master event: - push