This commit is contained in:
46
.drone.yml
46
.drone.yml
@@ -61,30 +61,44 @@ steps:
|
||||
password:
|
||||
from_secret: password_authelia
|
||||
port: 22
|
||||
command_timeout: 10s
|
||||
script:
|
||||
- timeout 5m sh -s < authelia/authelia-update.sh
|
||||
command_timeout: 10m
|
||||
script: |
|
||||
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
|
||||
type: ssh
|
||||
name: authelia_apply
|
||||
|
||||
clone:
|
||||
image: alpine/git
|
||||
|
||||
server:
|
||||
host: 10.0.4.18
|
||||
user: root
|
||||
password:
|
||||
from_secret: password_authelia
|
||||
|
||||
steps:
|
||||
- name: apply_authelia_update
|
||||
commands:
|
||||
- timeout 10m sh -s -- --apply --auto-revert < authelia/authelia-update.sh
|
||||
- name: ssh-apply
|
||||
image: appleboy/drone-ssh
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user