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:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- "image/**"
|
||||||
|
- "*image"
|
||||||
|
- "image*"
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- .github/workflows/ci.yml
|
- .github/workflows/ci.yml
|
||||||
- .github/workflows/lock.yml
|
- .github/workflows/lock.yml
|
||||||
|
|
@ -15,7 +18,29 @@ on:
|
||||||
- "Makefile"
|
- "Makefile"
|
||||||
|
|
||||||
jobs:
|
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:
|
build:
|
||||||
|
if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue