summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2020-12-10 08:17:07 -0500
committerGitHub <noreply@github.com>2020-12-10 08:17:07 -0500
commit820d8e6fc97ab6b52132ce34ede2eb3b89ee3541 (patch)
tree432b46c135590ede4989e25b475fcb42322b5294 /.github
parent3b8392587820b7d3cf519bdbfec014f7a987424b (diff)
Switch to using official Docker actions for GHA CI. (#10335)
This will make us more forward-portable, simplify eventual migration to GHA for release builds, and make it trivial to set up pushing images to multiple registries.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/docker.yml41
1 files changed, 23 insertions, 18 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 8c503fe8bf..447213554a 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -19,26 +19,31 @@ jobs:
strategy:
matrix:
arch:
- - amd64
- - i386
- - armhf
- - aarch64
+ - linux/amd64
+ - linux/i386
+ - linux/arm/v7
+ - linux/arm64
include:
- - arch: amd64
- platform: linux/amd64
- - arch: i386
- platform: linux/i386
- - arch: armhf
- platform: linux/arm/v7
- - arch: aarch64
- platform: linux/arm64
+ - arch: linux/amd64
+ base: amd64
+ - arch: linux/i386
+ base: i386
+ - arch: linux/arm/v7
+ base: armhf
+ - arch: linux/arm64
+ base: 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 }} --platform ${{ matrix.platform }} -f packaging/docker/Dockerfile .
+ - name: Setup QEMU
+ uses: docker/setup-qemu-action@v1
+ - name: Setup Buildx
+ uses: docker/setup-buildx-action@v1
+ - name: Docker Build
+ uses: docker/build-push-action@v2
+ with:
+ platforms: ${{ matrix.arch }}
+ push: false
+ build-args: |
+ ARCH=${{ matrix.base }}