mirror of
https://github.com/docker/bake-action.git
synced 2025-12-29 09:21:18 +01:00
53 lines
1.1 KiB
YAML
53 lines
1.1 KiB
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
bake:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target:
|
|
- default
|
|
- release
|
|
services:
|
|
registry:
|
|
image: registry:2
|
|
ports:
|
|
- 5000:5000
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v2
|
|
-
|
|
name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
-
|
|
name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
with:
|
|
driver-opts: network=host
|
|
-
|
|
name: Build and push
|
|
id: docker_build
|
|
uses: ./
|
|
with:
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
files: |
|
|
./test/config.hcl
|
|
targets: |
|
|
${{ matrix.target }}
|
|
push: false # set to true when https://github.com/docker/buildx/issues/179 is fixed
|
|
-
|
|
name: Dump context
|
|
if: always()
|
|
uses: crazy-max/ghaction-dump-context@v1
|