ArchiSteamFarm/.github/workflows/docker-ci.yml

38 lines
860 B
YAML

name: ASF-docker-ci
on: [push, pull_request]
env:
PLATFORMS: linux/amd64,linux/arm,linux/arm64
permissions: {}
jobs:
main:
strategy:
fail-fast: false
matrix:
configuration: [Debug, Release]
file: [Dockerfile, Dockerfile.Service]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.7
with:
show-progress: false
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.6.1
- name: Build ${{ matrix.configuration }} Docker image from ${{ matrix.file }}
uses: docker/build-push-action@v6.7.0
with:
build-args: CONFIGURATION=${{ matrix.configuration }}
context: .
file: ${{ matrix.file }}
platforms: ${{ env.PLATFORMS }}
provenance: true
sbom: true