Test Docker image build on pull-requests

This commit is contained in:
Frédéric Guillot
2022-12-04 11:02:49 -08:00
committed by Frédéric Guillot
parent 4c982294df
commit 9b03b50172
2 changed files with 17 additions and 2 deletions

View File

@@ -5,8 +5,24 @@ on:
push:
tags:
- 'v*.*.*'
pull_request:
branches: [ main ]
jobs:
test-image-build:
if: github.event.pull_request
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build image
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile
push: false
multiplatform-build:
if: ${{ ! github.event.pull_request }}
runs-on: ubuntu-latest
steps:
- name: Checkout