summaryrefslogtreecommitdiffstats
path: root/.github/workflows/docker.yml
blob: 1575475729077c23403862ba456aaf4bc5b7cbc0 (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
---
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
    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 }} -f packaging/docker/Dockerfile .