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