From 11720e1200328954f3678573da6612cc7a0119cf Mon Sep 17 00:00:00 2001 From: peefy Date: Tue, 16 Apr 2024 13:52:30 +0800 Subject: [PATCH] refactor: unset cache path env Signed-off-by: peefy --- .github/workflows/ci.yaml | 2 +- Dockerfile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 228ee07..142386b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -33,7 +33,7 @@ env: XPKG: xpkg.upbound.io/${{ github.repository}} # The package version to push. The default is 0.0.0-gitsha. - XPKG_VERSION: v0.5.0 + XPKG_VERSION: v0.5.1 jobs: unit-test: diff --git a/Dockerfile b/Dockerfile index b8b3ea7..ce80bf7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,6 +37,8 @@ RUN --mount=target=. \ # Produce the Function image. We use a very lightweight 'distroless' image that # does not include any of the build tools used in previous stages. FROM kcllang/kcl AS image +# Walkaround for #68: unset the kcl cache path env variable (the value is /tmp) to avoid the data competition. +RUN unset KCL_CACHE_PATH WORKDIR / COPY --from=build /function /function EXPOSE 9443