website/.drone.yml
Pierre-Olivier Mercier 6572e01a94
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Add variables to be changed during deployment
2021-01-10 22:55:52 +01:00

38 lines
688 B
YAML

---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: arm64
steps:
- name: build
image: plugins/hugo
settings:
hugo_version: 0.70.0
validate: true
- name: deploy
image: appleboy/drone-scp
settings:
debug: true
tar_tmp_path: /tmp/
host: ${TARGET_HOST:=www.happydns.org}
target: ${TARGET_DIRECTORY:=/var/www/happydns.org/htdocs}
source: public/*
strip_components: 1
username:
from_secret: ssh_username
key:
from_secret: deploy_key
port:
from_secret: ssh_port
when:
branch:
- master
event:
exclude:
- pull_request