drone/.drone.yml

34 lines
797 B
YAML

---
kind: pipeline
type: docker
name: default
trigger:
branch:
- master
steps:
- name: Budowanie dokcumentacji
image: paramah/hugo-deploy
commands:
- npm install -g postcss-cli
- npm install postcss autoprefixer
- git submodule update --init --recursive
- hugo --destination /drone/src/build
- minify -r -o /drone/src/build /drone/src/build
- name: Deploy dokumentacji
image: paramah/hugo-deploy
commands:
- eval `ssh-agent -s`
- echo "$SSH_KEY" | ssh-add -
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- rsync -rv -e "ssh -p 65522" /drone/src/build/ $SSH_URI:$DEST --checksum
environment:
SSH_KEY:
from_secret: drone_ssh_key
SSH_URI:
from_secret: ssh_uri
DEST:
from_secret: destination