initial commit

This commit is contained in:
Aleksander Cynarski 2020-08-24 23:07:40 +02:00
commit f45fa97f51
2 changed files with 51 additions and 0 deletions

32
.drone.yml Normal file
View File

@ -0,0 +1,32 @@
kind: pipeline
name: default
steps:
- name: build
image: plugins/hugo
settings:
pull: always
url:
from_secret: domain
validate: true
- name: deploy
image: appleboy/drone-scp
settings:
host:
from_secret: ssh_host
target:
from_secret: site_path
source: public/*
username:
from_secret: ssh_username
password:
from_secret: ssh_password
port:
from_secret: ssh_port
when:
branch:
- master
event:
exclude:
- pull_request

19
HUGO_DEPLOY.md Normal file
View File

@ -0,0 +1,19 @@
# Drone hugo
## Użycie
```
cat ${args[0]} |awk -F\= '{system("drone secret add --repository='${args[1]}' --name="$1 " --data="$2)}'
```
Wymagane zmienne:
```
domain=
site_path=
ssh_host=
ssh_username=
ssh_password=
ssh_port=
```