Skip to content

Bump docker/bake-action from 3 to 4 #245

Bump docker/bake-action from 3 to 4

Bump docker/bake-action from 3 to 4 #245

Workflow file for this run

name: test
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- 'master'
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
env:
PLATFORMS: linux/amd64,linux/arm64
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go_version:
- 1.21.5
- 1.20.12
case:
- c
- cpp
- gorm
- ffmerger
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: docker
-
name: Build xgo
uses: docker/bake-action@v4
with:
targets: image
set: |
*.tags=xgo:${{ matrix.go_version }}
*.args.GO_VERSION=${{ matrix.go_version }}
*.output=type=docker
-
name: Test ${{ matrix.case }} for go ${{ matrix.go_version }}
uses: docker/bake-action@v4
with:
targets: test-${{ matrix.case }}
env:
BASE_IMAGE: xgo:${{ matrix.go_version }}