From a5bacb59bfc303c7c76627206e65aa298fb52870 Mon Sep 17 00:00:00 2001 From: Mogeko Date: Thu, 21 Nov 2024 01:11:08 +0800 Subject: [PATCH] build(ci): squash the image into a single layer --- .github/workflows/build.yml | 1 + .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index edc8629..5700946 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,7 @@ jobs: with: containerfiles: ./Dockerfile image: localhost/vlmcsd + extra-args: --squash - run: podman run --rm localhost/vlmcsd:latest -V - name: Run and test containers run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b7ebdd..8d11c0d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,7 +51,7 @@ jobs: containerfiles: ./Dockerfile build-args: | VLMCSD_VERSION=${{ github.ref_name }} - layers: false + extra-args: --squash - name: Push to Container registry uses: redhat-actions/push-to-registry@v2.8 with: