-
-
Notifications
You must be signed in to change notification settings - Fork 53
68 lines (59 loc) · 1.61 KB
/
verify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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