forked from fluent/fluent-bit
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (54 loc) · 1.54 KB
/
pr-image-tests.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
55
56
57
58
59
60
61
name: Build images for all architectures
on:
pull_request:
types:
- opened
- reopened
- synchronize
paths:
- 'dockerfiles/Dockerfile'
- 'conf/**'
workflow_dispatch:
jobs:
pr-image-tests-build-images:
name: PR - Buildkit docker build test
runs-on: ubuntu-latest
environment: pr
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build the multi-arch images
uses: docker/build-push-action@v2
with:
file: ./dockerfiles/Dockerfile
context: .
platforms: linux/amd64
target: production
push: false
load: false
- name: Build the debug multi-arch images
uses: docker/build-push-action@v2
with:
file: ./dockerfiles/Dockerfile
context: .
platforms: linux/amd64
target: debug
push: false
load: false
pr-image-tests-classic-docker-build:
name: PR - Classic docker build test
runs-on: ubuntu-latest
environment: pr
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build the classic test image
# We only want to confirm it builds with classic mode, nothing else
run: |
docker build -f ./dockerfiles/Dockerfile .
env:
# Ensure we disable buildkit
DOCKER_BUILDKIT: 0
shell: bash