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