3 changed files with 36 additions and 1 deletions
@ -0,0 +1,34 @@
|
||||
--- |
||||
kind: pipeline |
||||
|
||||
steps: |
||||
- name: submodules |
||||
image: alpine/git |
||||
commands: |
||||
- git submodule update --init --recursive |
||||
|
||||
- name: build |
||||
image: "klakegg/hugo:0.83.1" |
||||
commands: |
||||
- mkdir dist |
||||
- hugo -d dist |
||||
- ls -la dist |
||||
|
||||
- name: deploy |
||||
image: appleboy/drone-scp |
||||
settings: |
||||
source: dist/* |
||||
target: /var/www/ptrcnull.me |
||||
host: |
||||
from_secret: ssh_host |
||||
username: |
||||
from_secret: ssh_username |
||||
password: |
||||
from_secret: ssh_password |
||||
strip_components: 1 |
||||
when: |
||||
branch: |
||||
- master |
||||
event: |
||||
exclude: |
||||
- pull_request |
Loading…
Reference in new issue