This repository was archived by the owner on Jun 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
87 lines (69 loc) · 2.93 KB
/
build.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Build containers
on:
push:
schedule:
- cron: "0 0 * * 0"
jobs:
cancel_redundant:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
group:
- image: "makeshift27015/bazarr"
dockerfile: "bazarr.Dockerfile"
- image: "makeshift27015/marauder_gcloud_init"
dockerfile: "gcloud_init/Dockerfile"
readme_location: "gcloud_init/Readme.md"
- image: "makeshift27015/radarr"
dockerfile: "radarr/Dockerfile"
readme_location: "radarr/Readme.md"
- image: "makeshift27015/rclone"
dockerfile: "rclone/Dockerfile"
readme_location: "rclone/Readme.md"
# Sadly Rclone only builds for certain arch's, and I'm too lazy to build it in the container cos it takes ages
architectures: "linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/386"
- image: "makeshift27015/marauder_rclone_generate_keys"
dockerfile: "rclone_generate_keys/Dockerfile"
readme_location: "rclone_generate_keys/Readme.md"
- image: "makeshift27015/sonarr"
dockerfile: "sonarr/Dockerfile"
readme_location: "sonarr/Readme.md"
- image: "makeshift27015/traktarr"
dockerfile: "traktarr/Dockerfile"
readme_location: "traktarr/Readme.md"
- image: "makeshift27015/headphones"
dockerfile: "headphones.Dockerfile"
- image: "makeshift27015/lazylibrarian"
dockerfile: "lazylibrarian.Dockerfile"
- image: "makeshift27015/medusa"
dockerfile: "medusa.Dockerfile"
- image: "makeshift27015/mylar"
dockerfile: "mylar.Dockerfile"
- image: "makeshift27015/nzbhydra2"
dockerfile: "nzbhydra2.Dockerfile"
- image: "makeshift27015/sabnzbd"
dockerfile: "sabnzbd.Dockerfile"
- image: "makeshift27015/transmission"
dockerfile: "transmission.Dockerfile"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build ${{ matrix.group.image }}
uses: ./.github/actions/build-and-push-container
with:
password: ${{ secrets.DOCKERHUB_TOKEN }}
dockerfile: ${{ matrix.group.dockerfile }}
image: ${{ matrix.group.image }}
# If readme_location is set, use it, otherwise use the default
readme_location: ${{ matrix.group.readme_location != '' && matrix.group.readme_location || 'generic-docker-readme.md' }}
# If it's not empty, use it, otherwise set to 'DOCKERFILE' which means the action decides
architectures: ${{ matrix.group.architectures != '' && matrix.group.architectures || 'DOCKERFILE' }}