Newer
Older
rules:
- if: $CI_PIPELINE_SOURCE != "schedule"
rules:
- if: $CI_PIPELINE_SOURCE != "schedule"
rules:
- if: $CI_PIPELINE_SOURCE != "schedule"
when: manual
backup:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
stage: deploy
tags: [host01.shore.co.il]
image: docker.io/library/docker:20.10
before_script:
- >-
docker build
--tag registry.shore.co.il/registry-backup
--pull
backup
script:
- >-
docker run
--volume /var/backups/registry:/var/backups/registry
--user nobody
--rm
registry.shore.co.il/registry-backup
backup registry.shore.co.il /var/backups/registry