Skip to content

Commit 12eb2a0

Browse files
committed
feat: simplify cache configuration in Docker build workflows
1 parent 6da82f1 commit 12eb2a0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/main-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ jobs:
7979
platforms: linux/amd64
8080
tags: |
8181
ghcr.io/deinfreu/hytale-server:${{ steps.set_tag.outputs.tag_prefix }}${{ steps.get_version.outputs.version }}
82-
cache-from: type=gha,scope=${{ matrix.tag_suffix }}-${{ steps.get_version.outputs.version }}
83-
cache-to: type=gha,mode=max,scope=${{ matrix.tag_suffix }}-${{ steps.get_version.outputs.version }}
82+
cache-from: type=gha
83+
cache-to: type=gha,mode=max
8484
- name: Build & push to Docker Hub
8585
uses: docker/build-push-action@v6
8686
with:
@@ -90,5 +90,5 @@ jobs:
9090
platforms: linux/amd64
9191
tags: |
9292
deinfreu/hytale-server:${{ steps.set_tag.outputs.tag_prefix }}${{ steps.get_version.outputs.version }}
93-
cache-from: type=gha,scope=${{ matrix.tag_suffix }}-${{ steps.get_version.outputs.version }}
94-
cache-to: type=gha,mode=max,scope=${{ matrix.tag_suffix }}-${{ steps.get_version.outputs.version }}
93+
cache-from: type=gha
94+
cache-to: type=gha,mode=max

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ jobs:
6565
platforms: linux/amd64
6666
tags: |
6767
ghcr.io/deinfreu/hytale-server:${{ matrix.tag_suffix }}
68-
cache-from: type=gha,scope=${{ matrix.tag_suffix }}
69-
cache-to: type=gha,mode=max,scope=${{ matrix.tag_suffix }}
68+
cache-from: type=gha
69+
cache-to: type=gha,mode=max
7070
- name: Build & push to Docker Hub
7171
uses: docker/build-push-action@v6
7272
with:
@@ -76,5 +76,5 @@ jobs:
7676
platforms: linux/amd64
7777
tags: |
7878
deinfreu/hytale-server:${{ matrix.tag_suffix }}
79-
cache-from: type=gha,scope=${{ matrix.tag_suffix }}
80-
cache-to: type=gha,mode=max,scope=${{ matrix.tag_suffix }}
79+
cache-from: type=gha
80+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)