test docker build for PRs
This commit is contained in:
parent
aa7a82dd6b
commit
e0bdd0360c
|
@ -45,7 +45,6 @@ jobs:
|
||||||
labels: |
|
labels: |
|
||||||
org.opencontainers.image.licenses=UNLICENSED
|
org.opencontainers.image.licenses=UNLICENSED
|
||||||
-
|
-
|
||||||
id : qemu
|
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue