mirror of
https://github.com/docker/setup-compose-action.git
synced 2026-03-08 05:27:42 +01:00
54 lines
1.0 KiB
YAML
54 lines
1.0 KiB
YAML
name: validate
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
- 'releases/v*'
|
|
pull_request:
|
|
|
|
env:
|
|
SETUP_BUILDX_VERSION: "edge"
|
|
|
|
jobs:
|
|
prepare:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
matrix: ${{ steps.generate.outputs.matrix }}
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v6
|
|
-
|
|
name: Generate matrix
|
|
id: generate
|
|
uses: docker/bake-action/subaction/matrix@v7
|
|
with:
|
|
target: validate
|
|
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- prepare
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include: ${{ fromJson(needs.prepare.outputs.matrix) }}
|
|
steps:
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v4
|
|
with:
|
|
version: ${{ env.SETUP_BUILDX_VERSION }}
|
|
driver: docker
|
|
-
|
|
name: Validate
|
|
uses: docker/bake-action@v7
|
|
with:
|
|
targets: ${{ matrix.target }}
|