Skip to content

Commit 7ac465f

Browse files
committed
Merge branch 'dev-use-registry-cache'
2 parents a44d772 + 173835f commit 7ac465f

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-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

.github/workflows/daily-master.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
uses: ./.github/workflows/_prepare-docker.yml
1919
with:
2020
arch: ${{ matrix.arch }}
21+
secrets: inherit
2122
strategy:
2223
matrix:
2324
arch:

.github/workflows/daily-mps.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
uses: ./.github/workflows/_prepare-docker.yml
1919
with:
2020
arch: ${{ matrix.arch }}
21+
secrets: inherit
2122
strategy:
2223
matrix:
2324
arch:

0 commit comments

Comments
 (0)