-
Notifications
You must be signed in to change notification settings - Fork 22
45 lines (45 loc) · 1.04 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
name: build
on:
pull_request:
push:
paths:
- .github/**/*.yml
- Dockerfile*
- Pipfile.lock
jobs:
build-multiarch:
runs-on: ubuntu-latest
strategy:
matrix:
file:
- Dockerfile
# - Dockerfile.alpine
- Dockerfile.jupyter
- Dockerfile.slim
steps:
- uses: actions/checkout@v3
- name: lint ${{ matrix.file }}
uses: ./.github/actions/lint
with:
file: ${{ matrix.file }}
- name: build ${{ matrix.file }}
uses: ./.github/actions/build
with:
file: ${{ matrix.file }}
build-amd64:
runs-on: ubuntu-latest
strategy:
matrix:
file:
- Dockerfile.alpine
steps:
- uses: actions/checkout@v3
- name: lint ${{ matrix.file }}
uses: ./.github/actions/lint
with:
file: ${{ matrix.file }}
- name: build ${{ matrix.file }}
uses: ./.github/actions/build
with:
file: ${{ matrix.file }}
platforms: linux/amd64