Skip to content

Commit 72be7ac

Browse files
committed
tries to improve build caching based on Yolean/docker-base#19
1 parent 1220319 commit 72be7ac

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/images.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,24 @@ jobs:
2929
password: ${{ secrets.GITHUB_TOKEN }}
3030
-
3131
name: Build and push runner
32-
uses: docker/build-push-action@v5
32+
uses: docker/build-push-action@v6
3333
env:
3434
SOURCE_DATE_EPOCH: 0
35+
BUILDKIT_PROGRESS: plain
36+
DOCKER_BUILDKIT: 1
3537
with:
3638
context: .
3739
file: runner.Dockerfile
3840
tags: |
3941
ghcr.io/yolean/ystack-runner:${{ github.sha }}
4042
platforms: linux/amd64,linux/arm64/v8
4143
push: true
42-
cache-from: type=gha
43-
cache-to: type=gha,mode=max
44+
cache-from: |
45+
type=gha,scope=runner-latest
46+
type=gha,scope=runner
47+
cache-to: type=gha,mode=max,scope=runner-latest
48+
continue-on-error: false
49+
timeout-minutes: 45
4450
-
4551
uses: actions/setup-go@v5
4652
with:

0 commit comments

Comments
 (0)