Compare commits

...

2 Commits

Author SHA1 Message Date
5e86455eb4 clean 2020-08-31 19:12:46 +02:00
2bbdbaece5 new drone integration 2020-08-31 18:36:53 +02:00

View File

@ -1,32 +1,33 @@
---
kind: pipeline
type: docker
name: default
trigger:
branch:
- master
steps:
- name: build
image: plugins/hugo
settings:
pull: always
url:
from_secret: domain
validate: true
- name: Budowanie strony
image: paramah/hugo-deploy
commands:
- npm install -D --save autoprefixer
- npm install -D --save postcss-cli
- git submodule update --init --recursive
- hugo --destination /drone/src/build
- minify -r -o /drone/src/build /drone/src/build
- 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
- name: Deploy strony
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