-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.09 KB
/
test-uptodate.yaml
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
name: Test Uptodate Action
on:
pull_request: []
push:
branches:
- main
workflow_dispatch:
jobs:
generate:
name: Generate Build Matrix
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
is_empty: ${{ steps.matrix.outputs.is_empty }}
steps:
- uses: actions/checkout@v3
- uses: ./uptodate/matrix
id: matrix
with:
root: uptodate
build:
needs:
- generate
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
result: ${{ fromJson(needs.generate.outputs.matrix) }}
if: ${{ needs.generate.outputs.is_empty == 'false' }}
name: "Build ${{ matrix.result.container_name }}"
steps:
- uses: actions/checkout@v3
- uses: ./uptodate/build
with:
repo: rse-ops
registry: ghcr.io
deploy: (github.event_name != 'pull_request')
token: ${{ secrets.GITHUB_TOKEN }}
container_name: ${{ matrix.result.container_name }}
command_prefix: ${{ matrix.result.command_prefix }}
dockerfile: ${{ matrix.result.filename }}