blob: 8c503fe8bfd7b7565fd871a2eeabc98617f7c7c3 (
plain)
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
|
---
name: Docker
on:
push:
branches:
- master
paths:
- '.github/workflows/docker.yml'
- 'netdata-installer.sh'
- 'packaging/**'
pull_request:
paths:
- '.github/workflows/docker.yml'
- 'netdata-installer.sh'
- 'packaging/**'
jobs:
docker-build:
name: Docker Build
strategy:
matrix:
arch:
- amd64
- i386
- armhf
- aarch64
include:
- arch: amd64
platform: linux/amd64
- arch: i386
platform: linux/i386
- arch: armhf
platform: linux/arm/v7
- arch: aarch64
platform: linux/arm64
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare Docker Environment
run:
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Test Docker Build
run:
docker build --build-arg ARCH=${{ matrix.arch }} --platform ${{ matrix.platform }} -f packaging/docker/Dockerfile .
|