@cryptotaxi247 / netdata-1 / commits / 820d8e6fc

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.

Austin S. Hemmelgarn committed Dec 10, 2020 at 08:17 UTC 820d8e6fc97ab6b52132ce34ede2eb3b89ee3541
1 file changed +23 -18
.github/workflows/docker.yml
+23 -18
@@ -19,26 +19,31 @@ jobs:
19 strategy:
20 matrix:
21 arch:
22 - - amd64
23 - - i386
24 - - armhf
25 - - aarch64
22 + - linux/amd64
23 + - linux/i386
24 + - linux/arm/v7
25 + - linux/arm64
26 include:
27 - - arch: amd64
28 - platform: linux/amd64
29 - - arch: i386
30 - platform: linux/i386
31 - - arch: armhf
32 - platform: linux/arm/v7
33 - - arch: aarch64
34 - platform: linux/arm64
27 + - arch: linux/amd64
28 + base: amd64
29 + - arch: linux/i386
30 + base: i386
31 + - arch: linux/arm/v7
32 + base: armhf
33 + - arch: linux/arm64
34 + base: aarch64
35 runs-on: ubuntu-latest
36 steps:
37 - name: Checkout
38 uses: actions/checkout@v2
39 - - name: Prepare Docker Environment
40 - run:
41 - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
42 - - name: Test Docker Build
43 - run:
44 - docker build --build-arg ARCH=${{ matrix.arch }} --platform ${{ matrix.platform }} -f packaging/docker/Dockerfile .
39 + - name: Setup QEMU
40 + uses: docker/setup-qemu-action@v1
41 + - name: Setup Buildx
42 + uses: docker/setup-buildx-action@v1
43 + - name: Docker Build
44 + uses: docker/build-push-action@v2
45 + with:
46 + platforms: ${{ matrix.arch }}
47 + push: false
48 + build-args: |
49 + ARCH=${{ matrix.base }}