-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (45 loc) · 1.03 KB
/
build.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
46
47
48
49
name: build
on:
pull_request:
paths:
- .github/workflows/build.yaml
- .github/workflows/reusable--*.yaml
- Dockerfile
- Dockerfile.*
- entrypoint.sh
- e2e-test/**
push:
paths:
- .github/workflows/build.yaml
- .github/workflows/reusable--*.yaml
- Dockerfile
- Dockerfile.*
- entrypoint.sh
- e2e-test/**
branches:
- main
tags:
- '*'
jobs:
build:
uses: ./.github/workflows/reusable--build.yaml
permissions:
contents: read
packages: write
build-ubuntu20:
uses: ./.github/workflows/reusable--build.yaml
permissions:
contents: read
packages: write
with:
file: Dockerfile.ubuntu20
flavor: suffix=-ubuntu20
e2e-test:
needs:
- build
- build-ubuntu20
uses: ./.github/workflows/reusable--e2e-test.yaml
secrets: inherit
with:
runner-image-uri: ${{ needs.build.outputs.image-uri }}
runner-ubuntu20-image-uri: ${{ needs.build-ubuntu20.outputs.image-uri }}