Skip to content

rsync: switch from delete to exec rm #168 #112

rsync: switch from delete to exec rm #168

rsync: switch from delete to exec rm #168 #112

Workflow file for this run

name: Verify
on:
pull_request:
branches:
- master
paths-ignore:
- "*.md"
jobs:
verify:
runs-on: ubuntu-20.04
env:
SRC_DIR: /tmp/source
DEST_DIR: /tmp/dest
BACKUP_INTERVAL: 0
EXCLUDES: '*.jar,exclude_dir'
RCON_PATH: /usr/bin/rcon-cli
DEBUG: true
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- name: Checkout
uses: actions/checkout@v3
# Script needs to be cleaned up a lot for shellcheck'ing
# - name: ShellCheck
# uses: ludeeus/[email protected]
# with:
# ignore: tests
- name: Hadolint Action
uses: hadolint/[email protected]
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host
- name: Build and push to local registry
uses: docker/[email protected]
with:
push: true
tags: localhost:5000/itzg/mc-backup:latest
- name: Test simple backup and exclusion scenario with tar
env:
EXTRACT_DIR: /tmp/extract
INITIAL_DELAY: 5s
PRUNE_BACKUPS_DAYS: 3
run: ./tests/test.simple.tar.sh
- name: Test restic handling
env:
RESTIC_REPOSITORY: /tmp/dest
INITIAL_DELAY: 0s
RESTIC_PASSWORD: 1234
run: ./tests/test.simple.restic.sh
- name: Test restic rclone handling
env:
RESTIC_REPOSITORY: rclone:/tmp/dest
INITIAL_DELAY: 0s
RESTIC_PASSWORD: 1234
run: ./tests/test.simple.restic.sh