test docker build for PRs

This commit is contained in:
Robin C. Ladiges 2022-07-03 17:20:46 +02:00
parent aa7a82dd6b
commit e0bdd0360c
No known key found for this signature in database
GPG Key ID: B494D3DF92661B99
2 changed files with 37 additions and 1 deletions

View File

@ -45,7 +45,6 @@ jobs:
labels: |
org.opencontainers.image.licenses=UNLICENSED
-
id : qemu
name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:

37
.github/workflows/test-pr.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: Test PR
on:
pull_request:
branches:
- '**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: amd64,arm64,arm
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Build
uses: docker/build-push-action@v3
with:
pull : true
push : false
context : .
file : ./Dockerfile
platforms : linux/amd64,linux/arm/v7,linux/arm64/v8
cache-from : type=gha,scope=${{ github.workflow }}
cache-to : type=gha,scope=${{ github.workflow }},mode=max