-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (51 loc) · 1.34 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
50
51
52
53
54
name: build
on:
pull_request:
paths:
- .github/workflows/build.yaml
- .github/workflows/reusable--build-and-test.yaml
- .github/workflows/reusable--e2e-test.yaml
- Dockerfile
- Dockerfile.*
- entrypoint.sh
- e2e-test/**
push:
paths:
- .github/workflows/build.yaml
- .github/workflows/reusable--build-and-test.yaml
- .github/workflows/reusable--e2e-test.yaml
- Dockerfile
- Dockerfile.*
- entrypoint.sh
- e2e-test/**
branches:
- main
tags:
- '*'
workflow_call:
inputs:
context:
type: string
required: false
description: context passed to docker/build-push-action (optional)
tags:
type: string
required: false
description: tags passed to docker/metadata-action (optional)
jobs:
runner:
uses: ./.github/workflows/reusable--build-and-test.yaml
secrets: inherit
with:
context: ${{ inputs.context }}
tags: ${{ inputs.tags }}
runner-name: runner-${{ github.run_id }}
runner-ubuntu20:
uses: ./.github/workflows/reusable--build-and-test.yaml
secrets: inherit
with:
context: ${{ inputs.context }}
tags: ${{ inputs.tags }}
file: Dockerfile.ubuntu20
flavor: suffix=-ubuntu20
runner-name: runner-ubuntu20-${{ github.run_id }}