fixing manual
All checks were successful
ci/woodpecker/push/regen-update-pipeline Pipeline was successful
All checks were successful
ci/woodpecker/push/regen-update-pipeline Pipeline was successful
This commit is contained in:
@@ -8,16 +8,14 @@ template_str = """
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: backup
|
name: backup
|
||||||
|
when:
|
||||||
|
event: [ push, manual ]
|
||||||
steps:
|
steps:
|
||||||
{% for backup in backups %}
|
{% for backup in backups %}
|
||||||
- name: backup_{{ backup.name }}
|
- name: backup_{{ backup.name }}
|
||||||
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