ok
All checks were successful
ci/woodpecker/push/regen-update-pipeline Pipeline was successful

This commit is contained in:
2025-09-20 23:05:58 -04:00
parent 75d04d5d18
commit 17a8970b25
2 changed files with 10 additions and 2 deletions

View File

@@ -3,10 +3,15 @@ type: docker
name: regen-backup-pipeline name: regen-backup-pipeline
# Only run this pipeline when the manifest changes # Only run this pipeline when the manifest changes
# when:
# path:
# include:
# - backup-paths.json
when: when:
path: event:
include: include:
- backup-paths.json - push
steps: steps:
- name: regenerate - name: regenerate

View File

@@ -15,6 +15,9 @@ steps:
image: alpine:3 image: alpine:3
volumes: volumes:
- {{ backup.path }}:/mnt/{{ backup.name }} - {{ backup.path }}:/mnt/{{ backup.name }}
when:
event: [ push, manual, cron ]
cron: nightly-backup
commands: commands:
- echo "Backing up {{ backup.path }}" - echo "Backing up {{ backup.path }}"
- tar czf /tmp/{{ backup.name }}.tar.gz /mnt/{{ backup.name }} - tar czf /tmp/{{ backup.name }}.tar.gz /mnt/{{ backup.name }}