You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

27 lines
521 B

kind: pipeline
type: docker
name: hugo-build
steps:
- name: build
image: ghcr.io/gohugoio/hugo:v0.160.0
commands:
- rm -f .hugo_build.lock
- hugo --minify --baseURL https://www.eryang.wang/ --noBuildLock
- 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