From 16b15cd659b7cb116ba7e46a03f47aed1fff1287 Mon Sep 17 00:00:00 2001 From: Verwoerd Date: Thu, 4 Apr 2024 17:51:16 +0200 Subject: [PATCH 1/3] Improve the caching of LFS objects to reduce the bandwith usage. Might resolve #55. --- .github/workflows/docker.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 49f1751..4a25319 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -12,9 +12,21 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: nschloe/action-cached-lfs-checkout@v1 + uses: actions/checkout@v4 with: submodules: recursive + lfs: false + - name: Create LFS file list + run: git lfs ls-files --long | cut -d ' ' -f1 | sort > .lfs-assets-id + - name: LFS Cache + uses: actions/cache@v4 + with: + path: .git/lfs/objects + key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }} + restore-keys: | + ${{ runner.os }}-lfs- + - name: Git LFS Pull + run: git lfs pull - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: From 270463c61774924f19e946c11ad2a1bb6550836c Mon Sep 17 00:00:00 2001 From: Maarten Sijm <9739541+mpsijm@users.noreply.github.com> Date: Fri, 5 Apr 2024 08:58:57 +0200 Subject: [PATCH 2/3] .github/workflows/docker.yml: Remove spaces at end of line --- .github/workflows/docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 4a25319..0f15ff9 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -26,7 +26,7 @@ jobs: restore-keys: | ${{ runner.os }}-lfs- - name: Git LFS Pull - run: git lfs pull + run: git lfs pull - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: From e40497774d2147416347f984c87431c0eafeb200 Mon Sep 17 00:00:00 2001 From: Verwoerd Date: Fri, 5 Apr 2024 09:50:53 +0200 Subject: [PATCH 3/3] Test with changed lfs resources --- static/schedule/schedule-fpc-24.png | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 static/schedule/schedule-fpc-24.png diff --git a/static/schedule/schedule-fpc-24.png b/static/schedule/schedule-fpc-24.png new file mode 100644 index 0000000..676f23a --- /dev/null +++ b/static/schedule/schedule-fpc-24.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95e9462f24d93328c510a96a0655d52826b69c00d8d46d616d404d4f9ce3a3d7 +size 31420