2020-08-07 05:01:05 -04:00
|
|
|
name: setup-buildx-ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-08-11 16:55:56 -04:00
|
|
|
branches:
|
|
|
|
- master
|
2020-08-07 05:01:05 -04:00
|
|
|
paths:
|
|
|
|
- .github/workflows/setup-buildx-ci.yml
|
|
|
|
- setup-buildx/**
|
|
|
|
pull_request:
|
2020-08-11 16:55:56 -04:00
|
|
|
branches:
|
|
|
|
- master
|
2020-08-07 05:01:05 -04:00
|
|
|
paths:
|
|
|
|
- .github/workflows/setup-buildx-ci.yml
|
|
|
|
- setup-buildx/**
|
|
|
|
|
|
|
|
jobs:
|
2020-08-12 08:07:04 -04:00
|
|
|
main:
|
2020-08-07 05:01:05 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
buildx-version:
|
|
|
|
- latest
|
|
|
|
- v0.2.2
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Runner info
|
|
|
|
run: |
|
|
|
|
sudo apt-get install -y hwinfo
|
|
|
|
sudo hwinfo --short
|
|
|
|
sudo mount
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
id: buildx
|
|
|
|
uses: ./setup-buildx/
|
|
|
|
with:
|
|
|
|
buildx-version: ${{ matrix.buildx-version }}
|
|
|
|
-
|
|
|
|
name: Available platforms
|
|
|
|
run: echo ${{ steps.buildx.outputs.platforms }}
|
2020-08-11 16:24:25 -04:00
|
|
|
-
|
2020-08-11 19:53:29 -04:00
|
|
|
name: Dump context
|
|
|
|
uses: crazy-max/ghaction-dump-context@v1
|
2020-08-07 05:08:31 -04:00
|
|
|
|
2020-08-07 13:14:30 -04:00
|
|
|
install:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./setup-buildx/
|
|
|
|
with:
|
|
|
|
install: true
|
|
|
|
-
|
|
|
|
name: Check cmd
|
|
|
|
run: |
|
|
|
|
docker build --help
|
|
|
|
|
2020-08-12 08:07:04 -04:00
|
|
|
driver:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
driver-opt:
|
|
|
|
- image=moby/buildkit:latest
|
|
|
|
- image=moby/buildkit:master
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
id: buildx
|
|
|
|
uses: ./setup-buildx/
|
|
|
|
with:
|
2020-08-12 08:10:08 -04:00
|
|
|
driver: docker-container
|
2020-08-12 08:07:04 -04:00
|
|
|
driver-opt: ${{ matrix.driver-opt }}
|
|
|
|
|
2020-08-07 05:08:31 -04:00
|
|
|
with-qemu:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
buildx-version:
|
|
|
|
- latest
|
|
|
|
- v0.2.2
|
2020-08-11 15:53:26 -04:00
|
|
|
qemu-platforms:
|
|
|
|
- all
|
|
|
|
- arm64,riscv64,arm
|
2020-08-07 05:08:31 -04:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
-
|
|
|
|
name: Set up QEMU
|
|
|
|
uses: ./setup-qemu/
|
|
|
|
with:
|
2020-08-11 15:53:26 -04:00
|
|
|
platforms: ${{ matrix.qemu-platforms }}
|
2020-08-07 05:08:31 -04:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
id: buildx
|
|
|
|
uses: ./setup-buildx/
|
|
|
|
with:
|
|
|
|
buildx-version: ${{ matrix.buildx-version }}
|
|
|
|
-
|
|
|
|
name: Available platforms
|
|
|
|
run: echo ${{ steps.buildx.outputs.platforms }}
|