From 541de41fa6f4d4bbf2edf1f1c1ee3e0355f9d7e5 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 6 Sep 2024 17:34:27 +0200 Subject: [PATCH] [ci] feat: try to skip buildcache --- .gitea/workflows/build.yaml | 2 +- Dockerfile.linux.amd64 | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index bc548be..cfb799b 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -31,11 +31,11 @@ jobs: - name: 'Build and Publish' uses: 'docker/build-push-action@v6' with: + build-args: 'CACHE_DATE="$(date +%Y-%m-%d:%H:%M:%S)"' context: '.' file: 'Dockerfile.linux.amd64' push: true tags: 'cr.simoncor.net/siempie/simoncor-net:latest,cr.simoncor.net/siempie/simoncor-net:${{ gitea.sha }}' - cache-from: '/tmp/cache-folder' # kubernetes deployment diff --git a/Dockerfile.linux.amd64 b/Dockerfile.linux.amd64 index 7661b3d..fb156f8 100644 --- a/Dockerfile.linux.amd64 +++ b/Dockerfile.linux.amd64 @@ -1,5 +1,8 @@ FROM cr.simoncor.net/siempie/hugo-sws:latest +# build cache date argument trick +ARG CACHE_DATE=2017-04-29 + # clone site and template RUN set -e \ && git clone --recursive https://git.simoncor.net/siempie/simoncor.net.git /site