42 lines
863 B
YAML
42 lines
863 B
YAML
---
|
|
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
image: ghcr.io/getzola/zola:v0.17.2
|
|
entrypoint: ["/bin/zola"]
|
|
command: ["build"]
|
|
|
|
- name: deploy-master
|
|
image: drillster/drone-rsync
|
|
settings:
|
|
hosts: ["s3.fofrweb.com"]
|
|
user: drone
|
|
source: public/*
|
|
target: /srv/www/cz/pkmples/www/
|
|
recursive: true
|
|
delete: true
|
|
environment:
|
|
RSYNC_KEY:
|
|
from_secret: rsync_private_key
|
|
when:
|
|
branch:
|
|
- master
|
|
|
|
- name: deploy-dev
|
|
image: drillster/drone-rsync
|
|
settings:
|
|
hosts: ["s3.fofrweb.com"]
|
|
user: drone
|
|
source: public/*
|
|
target: /srv/www/cz/pkmples/dev/
|
|
recursive: true
|
|
delete: true
|
|
environment:
|
|
RSYNC_KEY:
|
|
from_secret: rsync_private_key
|
|
when:
|
|
branch:
|
|
- dev
|