This commit is contained in:
@@ -3,10 +3,15 @@ type: docker
|
||||
name: regen-backup-pipeline
|
||||
|
||||
# Only run this pipeline when the manifest changes
|
||||
# when:
|
||||
# path:
|
||||
# include:
|
||||
# - backup-paths.json
|
||||
|
||||
when:
|
||||
path:
|
||||
event:
|
||||
include:
|
||||
- backup-paths.json
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: regenerate
|
||||
|
||||
@@ -15,6 +15,9 @@ steps:
|
||||
image: alpine:3
|
||||
volumes:
|
||||
- {{ backup.path }}:/mnt/{{ backup.name }}
|
||||
when:
|
||||
event: [ push, manual, cron ]
|
||||
cron: nightly-backup
|
||||
commands:
|
||||
- echo "Backing up {{ backup.path }}"
|
||||
- tar czf /tmp/{{ backup.name }}.tar.gz /mnt/{{ backup.name }}
|
||||
|
||||
Reference in New Issue
Block a user