nicktrimborn.de/.drone.yml

38 lines
769 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: submodules
image: alpine/git
commands:
- cd themes
#- git submodule update --init --recursive
- git submodule update --force --recursive --init --remote
- name: build
image: klakegg/hugo:ext-ci
commands:
- cd themes/hugo-resume # && npm i && cd -
#- hugo --gc --minify --environment production
- name: deploy
image: appleboy/drone-scp
settings:
host: "217.160.46.175"
target:
- /var/www/html/nicktrimborn.de/public_html/
source:
- public/*
username:
from_secret: webserver_username
password:
from_secret: webserver_password
trigger:
event:
include:
- push
- pull_request