2020-08-07 09:01:05 +00:00
|
|
|
name: setup-buildx-ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-08-11 20:55:56 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2020-08-07 09:01:05 +00:00
|
|
|
paths:
|
|
|
|
- .github/workflows/setup-buildx-ci.yml
|
|
|
|
- setup-buildx/**
|
|
|
|
pull_request:
|
2020-08-11 20:55:56 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2020-08-07 09:01:05 +00:00
|
|
|
paths:
|
|
|
|
- .github/workflows/setup-buildx-ci.yml
|
|
|
|
- setup-buildx/**
|
|
|
|
|
|
|
|
jobs:
|
2020-08-12 12:07:04 +00:00
|
|
|
main:
|
2020-08-07 09:01:05 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
buildx-version:
|
|
|
|
- latest
|
|
|
|
- v0.2.2
|
2020-08-12 14:00:25 +00:00
|
|
|
- ""
|
2020-08-07 09:01:05 +00:00
|
|
|
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 20:24:25 +00:00
|
|
|
-
|
2020-08-11 23:53:29 +00:00
|
|
|
name: Dump context
|
|
|
|
uses: crazy-max/ghaction-dump-context@v1
|
2020-08-07 09:08:31 +00:00
|
|
|
|
2020-08-07 17:14:30 +00: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 13:10:05 +00:00
|
|
|
use:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
use:
|
|
|
|
- true
|
|
|
|
- false
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
id: buildx
|
|
|
|
uses: ./setup-buildx/
|
|
|
|
with:
|
|
|
|
use: ${{ matrix.use }}
|
|
|
|
-
|
|
|
|
name: List builder instances
|
|
|
|
run: docker buildx ls
|
|
|
|
|
2020-08-12 12:07:04 +00: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 12:10:08 +00:00
|
|
|
driver: docker-container
|
2020-08-12 12:07:04 +00:00
|
|
|
driver-opt: ${{ matrix.driver-opt }}
|
|
|
|
|
2020-08-07 09:08:31 +00:00
|
|
|
with-qemu:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
buildx-version:
|
|
|
|
- latest
|
|
|
|
- v0.2.2
|
2020-08-11 19:53:26 +00:00
|
|
|
qemu-platforms:
|
|
|
|
- all
|
|
|
|
- arm64,riscv64,arm
|
2020-08-07 09:08:31 +00:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
-
|
|
|
|
name: Set up QEMU
|
|
|
|
uses: ./setup-qemu/
|
|
|
|
with:
|
2020-08-11 19:53:26 +00:00
|
|
|
platforms: ${{ matrix.qemu-platforms }}
|
2020-08-07 09:08:31 +00: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 }}
|