Compare commits

...

3 Commits

Author SHA1 Message Date
991a221b20 TERRATEST 2020-09-27 20:19:24 +02:00
3be2bf2e0b initial commit 2020-08-24 23:28:02 +02:00
1835fb7b2d initial commit 2020-08-24 23:22:32 +02:00
2 changed files with 33 additions and 30 deletions

View File

@ -2,31 +2,34 @@ kind: pipeline
name: default
steps:
- name: build
image: plugins/hugo
- name: terratest
image: plugins/docker
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
from_secret: hub_username
password:
from_secret: ssh_password
port:
from_secret: ssh_port
from_secret: hub_password
repo:
from_secret: hub_repo
tags: latest
when:
branch:
- master
event:
exclude:
- pull_request
- name: notify
image: appleboy/drone-telegram
settings:
token:
from_secret: telegram_bot_token
to:
from_secret: telegram_group_id
message: >
{{#success build.status}}
build {{build.link}} triggerd by {{commit.link}} from {{commit.author}} succeeded
{{else}}
build {{build.link}} triggerd by {{commit.link}} from {{commit.author}} failed
{{/success}}
when:
status:
- success
- failure

View File

@ -1,4 +1,4 @@
# Drone hugo
# Drone docker deploy
## Użycie
@ -9,11 +9,11 @@ cat ${args[0]} |awk -F\= '{system("drone secret add --repository='${args[1]}' --
Wymagane zmienne:
```
domain=
site_path=
ssh_host=
ssh_username=
ssh_password=
ssh_port=
hub_username=
hub_password=
hub_repo=
telegram_bot_token=
telegram_group_id=
```