Skip to content

Commit c9af030

Browse files
committed
Builder docker cache to registry
1 parent a44d772 commit c9af030

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/_prepare-docker.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,21 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v4
1515

16+
- name: Login to Docker Hub
17+
uses: docker/login-action@v3
18+
with:
19+
username: blahgeek
20+
password: ${{ secrets.DOCKERHUB_TOKEN }}
21+
1622
- name: Set up Docker Buildx
1723
uses: docker/setup-buildx-action@v3
1824

1925
- name: Build and export
20-
uses: docker/build-push-action@v5
26+
uses: docker/build-push-action@v6
2127
with:
2228
context: .
23-
cache-from: type=gha
24-
cache-to: type=gha,mode=max
29+
cache-from: type=registry,ref=blahgeek/emacs-appimage-builder:${{ inputs.arch }}-cache
30+
cache-to: type=registry,ref=blahgeek/emacs-appimage-builder:${{ inputs.arch }}-cache,mode=max
2531
tags: builder-image:latest
2632
outputs: type=docker,dest=/tmp/${{ inputs.arch }}-builder-image.tar
2733

0 commit comments

Comments
 (0)