Skip to content

Commit 7413e5e

Browse files
committed
fix: use gha as cache backend for docker images
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
1 parent cf6ba4c commit 7413e5e

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/integration-test-k8s.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,13 @@ jobs:
211211
- name: Set up Docker Buildx
212212
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
213213

214+
- name: Login to GitHub Container Registry
215+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3
216+
with:
217+
registry: ghcr.io
218+
username: ${{ github.actor }}
219+
password: ${{ secrets.GITHUB_TOKEN }}
220+
214221
- name: Build the context_chat_backend cpu image
215222
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
216223
with:
@@ -220,8 +227,8 @@ jobs:
220227
tags: ccb-cpu:latest
221228
target: runtime-cpu
222229
load: true
223-
cache-from: type=registry,ref=nextcloud/context_chat_backend:cpu-build-cache,compression=zstd,mode=max
224-
cache-to: type=registry,ref=nextcloud/context_chat_backend:cpu-build-cache
230+
cache-from: type=gha
231+
cache-to: type=gha,mode=max
225232

226233
- name: Pre-load CCB ExApp image into k3s
227234
run: docker save ccb-cpu:latest | sudo k3s ctr images import -

0 commit comments

Comments
 (0)