Compare commits

..

1 Commits
hugo ... master

Author SHA1 Message Date
1835fb7b2d initial commit 2020-08-24 23:22:32 +02:00
2 changed files with 0 additions and 52 deletions

View File

@ -1,33 +0,0 @@
---
kind: pipeline
type: docker
name: default
trigger:
branch:
- master
steps:
- 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 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

View File

@ -1,19 +0,0 @@
# 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=
```