summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2020-03-02 12:23:46 -0500
committerGitHub <noreply@github.com>2020-03-02 19:23:46 +0200
commit5efa320ac25c8d1c95629147562923c794b52e03 (patch)
tree6ae9ce41b83b08ab9075a6198daa152bfb3ffe12 /.github
parenta7769d5b95f1edce0c8905b54c837761fbc99883 (diff)
Added Docker build tests to PR checks. (#8257)
This adds PR checks to verify that Docker builds work correctly when PR's change the packaging code. It verifies all four architectures that we currently build Docker images for.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/docker.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
new file mode 100644
index 0000000000..28c60e1bc5
--- /dev/null
+++ b/.github/workflows/docker.yml
@@ -0,0 +1,39 @@
+---
+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: 'Build'
+ strategy:
+ matrix:
+ arch:
+ - 'amd64'
+ - 'i386'
+ - 'arm'
+ - 'arm64'
+ include:
+ - arch: 'arm'
+ pre: 'docker run --rm --privileged multiarch/qemu-user-static --reset -p yes > /dev/null'
+ - arch: 'arm64'
+ pre: 'docker run --rm --privileged multiarch/qemu-user-static --reset -p yes > /dev/null'
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Test Docker Build for ${{ matrix.arch }}
+ env:
+ PRE: ${{ matrix.pre }}
+ run:
+ docker build . --no-cache --build-arg ARCH=${{ matrix.arch }} --file Dockerfile