Drone CI build a deployment
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Emil Miler 2022-09-28 11:20:15 +02:00
parent 786267a048
commit fe65dd694d
1 changed files with 24 additions and 0 deletions

24
.drone.yml Normal file
View File

@ -0,0 +1,24 @@
kind: pipeline
name: default
steps:
- name: build
image: debian
commands:
- apt-get -q update && apt-get -yq install wget
- wget -q https://github.com/getzola/zola/releases/download/v0.16.1/zola-v0.16.1-x86_64-unknown-linux-gnu.tar.gz
- tar zxf zola-v0.16.1-x86_64-unknown-linux-gnu.tar.gz
- ./zola build
- name: deploy
image: drillster/drone-rsync
settings:
hosts: [ "0x45.cz" ]
user: drone
source: public/*
target: /srv/www/receptty.org
recursive: true
delete: true
environment:
RSYNC_KEY:
from_secret: rsync_private_key