From a4555f34ff642a2019798f4255e884e2a2dc8a64 Mon Sep 17 00:00:00 2001 From: Quan TRAN Date: Wed, 6 Apr 2022 11:27:19 +0200 Subject: [PATCH] test build image without publication Signed-off-by: Quan TRAN --- .github/workflows/canary_images.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/canary_images.yaml b/.github/workflows/canary_images.yaml index a7bdf921..c9f36591 100644 --- a/.github/workflows/canary_images.yaml +++ b/.github/workflows/canary_images.yaml @@ -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