feat: Backup Secrets #28

This commit is contained in:
2023-09-22 00:51:36 +02:00
parent 6fa9440c76
commit 825565451a
2 changed files with 43 additions and 1 deletions

View File

@ -5,13 +5,15 @@ set -e -o pipefail
apk add --upgrade --no-cache \
restic=0.15.2-r3 \
bash=5.2.15-r5 \
restic=0.15.2-r2 \
python3=3.11.5-r0 \
py3-pip=23.1.2-r0
# Todo use requirements file with specific versions
pip install click==8.1.7 docker==6.1.3 resticpy==1.0.2
# Attach secrets to backupbot
backup attach-secrets
if [ -n "$SSH_HOST_KEY" ]
then
echo "$SSH_HOST_KEY" > /root/.ssh/known_hosts