ArchiSteamFarm/.github/workflows/docker-ci.yml
2023-09-22 19:24:26 +00:00

36 lines
886 B
YAML

name: ASF-docker-ci
on: [push, pull_request]
env:
PLATFORMS: linux/amd64,linux/arm,linux/arm64
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.0
with:
show-progress: false
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.0.0
- name: Build ${{ matrix.configuration }} Docker image from ${{ matrix.file }}
uses: docker/build-push-action@v5.0.0
with:
context: .
file: ${{ matrix.file }}
platforms: ${{ env.PLATFORMS }}
build-args: |
CONFIGURATION=${{ matrix.configuration }}
STEAM_TOKEN_DUMPER_TOKEN=${{ secrets.STEAM_TOKEN_DUMPER_TOKEN }}