-
-
Notifications
You must be signed in to change notification settings - Fork 2
117 lines (115 loc) · 3.67 KB
/
merge_check.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
################################################################################
# TaleCaster - https://github.com/rootwyrm/talecaster
# Copyright (C) 2015-* Phillip R. Jaenke <talecaster@rootwrym.com> and its
# contributors, all rights reserved.
#
# Licensed under CC-BY-NC-4.0
# See /LICENSE for details
################################################################################
name: CICD - Linter
on:
pull_request:
branches:
- latest
- devel/*
paths:
- container/**
- ci/**
workflow_dispatch:
jobs:
############################################################
# Linter
############################################################
tc_docker:
name: Pull Request - tc_docker
runs-on: ubuntu-latest
strategy:
matrix:
container: [ tc_docker ]
env:
CONTAINER: ${{ matrix.container }}
steps:
- name: Check out from ${{ github.ref }}
id: checkout
uses: actions/checkout@v2
- name: Test pre-build hooks
id: hooks
run: |
$GITHUB_WORKSPACE/ci/hooks/pre_build
- name: Setup qemu environment
uses: docker/setup-qemu-action@v1
- name: Setup buildx environment
uses: docker/setup-buildx-action@v1
- name: Build ${{ matrix.container }}
id: docker_nopush
uses: docker/build-push-action@v2
with:
platforms: linux/amd64, linux/arm64
context: container/${{ matrix.container }}
pull: true
push: false
tags: rootwyrm/${{ matrix.container }}:merge
############################################################
# tc_qbittorrent - takes 1hr+
############################################################
tc_qbittorrent:
name: Pull Request - tc_qbittorrent
runs-on: ubuntu-latest
env:
CONTAINER: tc_qbittorrent
steps:
- name: Check out from ${{ github.ref }}
id: checkout
uses: actions/checkout@v2
- name: Test pre-build hooks
id: hooks
run: |
$GITHUB_WORKSPACE/ci/hooks/pre_build
- name: Setup qemu environment
uses: docker/setup-qemu-action@v1
- name: Setup buildx environment
uses: docker/setup-buildx-action@v1
- name: Build tc_qbittorrent
id: docker_nopush
uses: docker/build-push-action@v2
with:
platforms: linux/amd64, linux/arm64
context: container/tc_qbittorrent
pull: true
push: false
tags: rootwyrm/tc_qbittorrent:merge
############################################################
# tc_docker chidlren
############################################################
tc_docker_child:
name: Pull Request - tc_docker children
runs-on: ubuntu-latest
needs: tc_docker
strategy:
matrix:
container: [ tc_frontend, tc_nzbget, tc_sonarr, tc_transmission, tc_lidarr, tc_radarr, tc_prowlarr ]
env:
CONTAINER: ${{ matrix.container }}
steps:
- name: Check out from ${{ github.ref }}
id: checkout
uses: actions/checkout@v2
- name: Test pre-build hooks
id: hooks
run: |
$GITHUB_WORKSPACE/ci/hooks/pre_build
- name: Setup qemu environment
uses: docker/setup-qemu-action@v1
- name: Setup buildx environment
uses: docker/setup-buildx-action@v1
- name: Build ${{ matrix.container }}
id: docker_nopush
uses: docker/build-push-action@v2
with:
platforms: linux/amd64, linux/arm64
context: container/${{ matrix.container }}
pull: true
push: false
tags: rootwyrm/${{ matrix.container }}:merge
# colorscheme=inkpot
# vim:ts=2:sw=2:et