mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
da068165f6
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
45 lines
887 B
YAML
45 lines
887 B
YAML
name: ci
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
- '[0-9]+.[0-9]{2}'
|
|
tags:
|
|
- 'v*'
|
|
pull_request:
|
|
|
|
env:
|
|
BUNDLES_OUTPUT: ./bundles
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target:
|
|
- binary
|
|
- dynbinary
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
-
|
|
name: Build
|
|
uses: docker/bake-action@v1
|
|
with:
|
|
targets: ${{ matrix.target }}
|
|
-
|
|
name: Upload build artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: ${{ matrix.target }}
|
|
path: ${{ env.BUNDLES_OUTPUT }}/${{ matrix.target }}-daemon/*
|
|
if-no-files-found: error
|