From 02c06d7f1cea7197cad87bcf59ed2788b6f5c88b Mon Sep 17 00:00:00 2001 From: toast Date: Tue, 24 Oct 2023 09:47:34 +1100 Subject: [PATCH] Tweak the build workflow --- .gitea/workflows/build_container.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/build_container.yml b/.gitea/workflows/build_container.yml index 6f87ac9..37a02b6 100644 --- a/.gitea/workflows/build_container.yml +++ b/.gitea/workflows/build_container.yml @@ -35,3 +35,6 @@ jobs: tags: ${{ secrets.DOCKER_REGISTRY }}/toast/corn-utility:main cache-from: type=registry,ref=${{ secrets.DOCKER_REGISTRY }}/toast/corn-utility:main cache-to: type=inline + build-args: | + COMMIT_SHA=$(git rev-parse --short HEAD) + CACHE_BUST=${COMMIT_SHA}