From cd9d8a07ddb8341cb0372fef56134bc17aab3563 Mon Sep 17 00:00:00 2001 From: mu <59917266+4eUeP@users.noreply.github.com> Date: Tue, 9 Jul 2024 15:44:49 +0800 Subject: [PATCH] [workaround]docker build: no cache --- .github/workflows/publish.yml | 2 ++ .github/workflows/publish_latest.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 173cf6afa..86d17106e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -60,6 +60,7 @@ jobs: --build-arg LD_IMAGE=${{ matrix.ld_image }} \ --build-arg HSTREAM_VERSION=${{ env.LATEST_TAG }} \ --build-arg HSTREAM_VERSION_COMMIT=${{ env.CURRENT_COMMIT }} \ + --build-arg BUILD_CACHE="no_cache" \ -t ${IMAGE_NAME}:${{ matrix.tag }} - name: Push image to dockerhub @@ -72,6 +73,7 @@ jobs: --build-arg LD_IMAGE=${{ matrix.ld_image }} \ --build-arg HSTREAM_VERSION=${{ env.LATEST_TAG }} \ --build-arg HSTREAM_VERSION_COMMIT=${{ env.CURRENT_COMMIT }} \ + --build-arg BUILD_CACHE="no_cache" \ --target builder \ -t ${BUILDER_IMAGE_NAME}:latest # For cache diff --git a/.github/workflows/publish_latest.yml b/.github/workflows/publish_latest.yml index 92a570e9c..091cc59b9 100644 --- a/.github/workflows/publish_latest.yml +++ b/.github/workflows/publish_latest.yml @@ -60,6 +60,7 @@ jobs: --build-arg LD_IMAGE=${{ matrix.ld_image }} \ --build-arg HSTREAM_VERSION=${{ env.LATEST_TAG }} \ --build-arg HSTREAM_VERSION_COMMIT=${{ env.CURRENT_COMMIT }} \ + --build-arg BUILD_CACHE="no_cache" \ -t ${IMAGE_NAME}:${{ matrix.tag }} - name: Push image to dockerhub @@ -72,6 +73,7 @@ jobs: --build-arg LD_IMAGE=${{ matrix.ld_image }} \ --build-arg HSTREAM_VERSION=${{ env.LATEST_TAG }} \ --build-arg HSTREAM_VERSION_COMMIT=${{ env.CURRENT_COMMIT }} \ + --build-arg BUILD_CACHE="no_cache" \ --target builder \ -t ${BUILDER_IMAGE_NAME}:latest # For cache