This commit is contained in:
30
.drone.yml
30
.drone.yml
@@ -1,9 +1,9 @@
|
||||
---
|
||||
kind: secret
|
||||
name: password_xigmanas
|
||||
name: password_authelia
|
||||
get:
|
||||
path: secret/data/xigmanas/ssh
|
||||
name: drone-worker
|
||||
path: secret/data/authelia/ssh
|
||||
name: root
|
||||
|
||||
---
|
||||
kind: secret
|
||||
@@ -30,15 +30,15 @@ type: ssh
|
||||
name: authelia_check
|
||||
|
||||
server:
|
||||
host: 172.16.1.251
|
||||
user: drone-worker
|
||||
host: 10.0.4.18
|
||||
user: root
|
||||
password:
|
||||
from_secret: password_xigmanas
|
||||
from_secret: password_authelia
|
||||
|
||||
steps:
|
||||
- name: check_authelia_update
|
||||
commands:
|
||||
- timeout 5m bastille cmd authelia sh -s < authelia/authelia-update.sh
|
||||
- timeout 5m sh -s < authelia/authelia-update.sh
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -48,14 +48,14 @@ steps:
|
||||
- name: ssh-check
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host: 172.16.1.251
|
||||
username: drone-worker
|
||||
host: 10.0.4.18
|
||||
username: root
|
||||
password:
|
||||
from_secret: password_xigmanas
|
||||
from_secret: password_authelia
|
||||
port: 22
|
||||
command_timeout: 10s
|
||||
script:
|
||||
- timeout 5m bastille cmd authelia sh -s < authelia/authelia-update.sh
|
||||
- timeout 5m sh -s < authelia/authelia-update.sh
|
||||
|
||||
|
||||
---
|
||||
@@ -64,15 +64,15 @@ type: ssh
|
||||
name: authelia_apply
|
||||
|
||||
server:
|
||||
host: xigmanas.lan
|
||||
user: drone-worker
|
||||
host: 10.0.4.18
|
||||
user: root
|
||||
password:
|
||||
from_secret: password_xigmanas
|
||||
from_secret: password_authelia
|
||||
|
||||
steps:
|
||||
- name: apply_authelia_update
|
||||
commands:
|
||||
- timeout 10m bastille cmd authelia sh -s -- --apply --auto-revert < authelia/authelia-update.sh
|
||||
- timeout 10m sh -s -- --apply --auto-revert < authelia/authelia-update.sh
|
||||
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user