This commit is contained in:
46
.drone.yml
46
.drone.yml
@@ -61,30 +61,44 @@ steps:
|
|||||||
password:
|
password:
|
||||||
from_secret: password_authelia
|
from_secret: password_authelia
|
||||||
port: 22
|
port: 22
|
||||||
command_timeout: 10s
|
command_timeout: 10m
|
||||||
script:
|
script: |
|
||||||
- timeout 5m sh -s < authelia/authelia-update.sh
|
set -e
|
||||||
|
|
||||||
|
fetch -o /tmp/authelia-update.sh \
|
||||||
|
https://git.familie-berner.de/Open/infra-maintenance/raw/branch/main/authelia/authelia-update.sh
|
||||||
|
|
||||||
|
chmod +x /tmp/authelia-update.sh
|
||||||
|
|
||||||
|
timeout 5m /tmp/authelia-update.sh
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: ssh
|
|
||||||
name: authelia_apply
|
name: authelia_apply
|
||||||
|
|
||||||
clone:
|
|
||||||
image: alpine/git
|
|
||||||
|
|
||||||
server:
|
|
||||||
host: 10.0.4.18
|
|
||||||
user: root
|
|
||||||
password:
|
|
||||||
from_secret: password_authelia
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: apply_authelia_update
|
- name: ssh-apply
|
||||||
commands:
|
image: appleboy/drone-ssh
|
||||||
- timeout 10m sh -s -- --apply --auto-revert < authelia/authelia-update.sh
|
settings:
|
||||||
|
host: 10.0.4.18
|
||||||
|
username: root
|
||||||
|
password:
|
||||||
|
from_secret: password_authelia
|
||||||
|
port: 22
|
||||||
|
command_timeout: 15m
|
||||||
|
script: |
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "[INFO] Fetching authelia update script…"
|
||||||
|
|
||||||
|
fetch -o /tmp/authelia-update.sh \
|
||||||
|
https://git.familie-berner.de/Open/infra-maintenance/raw/branch/main/authelia/authelia-update.sh
|
||||||
|
|
||||||
|
chmod +x /tmp/authelia-update.sh
|
||||||
|
|
||||||
|
echo "[INFO] Applying authelia update…"
|
||||||
|
|
||||||
|
timeout 10m /tmp/authelia-update.sh --apply --auto-revert
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
|||||||
Reference in New Issue
Block a user