refactored container image and gitea workflows
All checks were successful
/ build-docker-image (push) Successful in 1m2s

This commit is contained in:
2025-09-21 15:51:47 +01:00
parent 9fd2b7dd8b
commit 886cbb292f
9 changed files with 185 additions and 63 deletions

View File

@@ -2,34 +2,41 @@ services:
borg:
tty: true
stdin_open: true
# entrypoint: ["bash"]
build:
dockerfile: docker/Dockerfile
context: .
environment:
- BORG_REPO=???????
- BORG_RSH="ssh -o StrictHostKeyChecking=no"
- BORG_PASSPHRASE=????
environment:
- BORG_REPO="${BORG_REPO}"
- BORG_RSH="${BORG_REPO}"
- BORG_PASSPHRASE="${BORG_PASSPHRASE}"
- MODE=SCRIPT # Valid modes are: BORG, SCRIPT, SHELL, default is BORG
command: "${CONTAINER_COMMAND:-list}"
configs:
# - source: backup_script
# target: /app/backup-scripts/run
- source: id_ed25519
target: /root/.ssh/id_ed25519
mode: 0400
- source: borg_key
target: /app/borg/key
mode: 0400
volumes:
- ./docker/app/scripts:/app/scripts
- ./docker/dev-backup-scripts:/app/backup-scripts
configs:
# backup_script:
# content: |
# #!bin/bash
# echo "hello work!!!! (please override me)"
id_ed25519:
content: |
-----BEGIN OPENSSH PRIVATE KEY-----
???????
???????
-----END OPENSSH PRIVATE KEY-----
${ID_ED25519}
borg_key:
content: |
BORG_KEY ???????
????????????????
????????????????
${BORG_KEY}