test build image without publication
Signed-off-by: Quan TRAN <account@itscaro.me>
This commit is contained in:
parent
570a2c22e9
commit
a4555f34ff
|
|
@ -4,6 +4,9 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- main
|
||||
- "image/**"
|
||||
- "*image"
|
||||
- "image*"
|
||||
paths-ignore:
|
||||
- .github/workflows/ci.yml
|
||||
- .github/workflows/lock.yml
|
||||
|
|
@ -15,7 +18,29 @@ on:
|
|||
- "Makefile"
|
||||
|
||||
jobs:
|
||||
build-test:
|
||||
if: ${{ github.ref != 'refs/heads/main' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
name: Build Images
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build
|
||||
uses: docker/build-push-action@v2
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- dockerfile: Dockerfile
|
||||
- dockerfile: Dockerfile.debian
|
||||
with:
|
||||
file: ${{ matrix.dockerfile }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
||||
build:
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
|
|||
Loading…
Reference in New Issue