This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user