From e7e438f1a1a1b9d7362f76c40756ca918bb1e738 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 6 Sep 2024 17:53:06 +0200 Subject: [PATCH] [ci] feat: try to skip buildcache --- .gitea/workflows/build.yaml | 2 +- Dockerfile.linux.amd64 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 648756b..1075065 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -31,7 +31,7 @@ jobs: - name: 'Build and Publish' uses: 'docker/build-push-action@v6' with: - build-args: 'CACHE_DATE=$(`date +%Y-%m-%d:%H:%M:%S`)' + build-args: 'GITEA_SHA=${{ gitea.sha }}' context: '.' file: 'Dockerfile.linux.amd64' push: true diff --git a/Dockerfile.linux.amd64 b/Dockerfile.linux.amd64 index 0872607..28f97ea 100644 --- a/Dockerfile.linux.amd64 +++ b/Dockerfile.linux.amd64 @@ -1,8 +1,8 @@ FROM cr.simoncor.net/siempie/hugo-sws:latest # build cache date argument trick -ARG CACHE_DATE=2017-04-29 -RUN echo $CACHE_DATE +ARG GITEA_SHA=some_sha +RUN echo $GITEA_SHA # clone site and template RUN set -e \