mirror of
https://github.com/docker/build-push-action.git
synced 2024-11-09 01:53:33 -05:00
5cec6ce786
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
131 lines
2.7 KiB
YAML
131 lines
2.7 KiB
YAML
name: setup-buildx-ci
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- .github/workflows/setup-buildx-ci.yml
|
|
- setup-buildx/**
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- .github/workflows/setup-buildx-ci.yml
|
|
- setup-buildx/**
|
|
|
|
jobs:
|
|
main:
|
|
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 }}
|
|
-
|
|
name: Dump context
|
|
uses: crazy-max/ghaction-dump-context@v1
|
|
|
|
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
|
|
|
|
driver:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
driver:
|
|
- docker-container
|
|
- docker
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v2.3.1
|
|
-
|
|
name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: ./setup-buildx/
|
|
with:
|
|
driver: ${{ matrix.driver }}
|
|
|
|
driver-opt:
|
|
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:
|
|
driver-opt: ${{ matrix.driver-opt }}
|
|
|
|
with-qemu:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
buildx-version:
|
|
- latest
|
|
- v0.2.2
|
|
qemu-platforms:
|
|
- all
|
|
- arm64,riscv64,arm
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v2.3.1
|
|
-
|
|
name: Set up QEMU
|
|
uses: ./setup-qemu/
|
|
with:
|
|
platforms: ${{ matrix.qemu-platforms }}
|
|
-
|
|
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 }}
|