Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
991a221b20 | |||
3be2bf2e0b | |||
1835fb7b2d |
49
.drone.yml
49
.drone.yml
@ -2,31 +2,34 @@ kind: pipeline
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: terratest
|
||||||
image: plugins/hugo
|
image: plugins/docker
|
||||||
settings:
|
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:
|
username:
|
||||||
from_secret: ssh_username
|
from_secret: hub_username
|
||||||
password:
|
password:
|
||||||
from_secret: ssh_password
|
from_secret: hub_password
|
||||||
port:
|
repo:
|
||||||
from_secret: ssh_port
|
from_secret: hub_repo
|
||||||
|
tags: latest
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
event:
|
|
||||||
exclude:
|
- name: notify
|
||||||
- pull_request
|
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
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Drone hugo
|
# Drone docker deploy
|
||||||
|
|
||||||
## Użycie
|
## Użycie
|
||||||
|
|
||||||
@ -9,11 +9,11 @@ cat ${args[0]} |awk -F\= '{system("drone secret add --repository='${args[1]}' --
|
|||||||
Wymagane zmienne:
|
Wymagane zmienne:
|
||||||
|
|
||||||
```
|
```
|
||||||
domain=
|
hub_username=
|
||||||
site_path=
|
hub_password=
|
||||||
ssh_host=
|
hub_repo=
|
||||||
ssh_username=
|
telegram_bot_token=
|
||||||
ssh_password=
|
telegram_group_id=
|
||||||
ssh_port=
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user