Skip to content

Commit 316686d

Browse files
committed
chore: Move from GHA cache to registry cache
1 parent 7782f0c commit 316686d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ jobs:
8181
type=semver,pattern={{version}}
8282
type=semver,pattern={{major}}.{{minor}}
8383
type=semver,pattern={{major}}
84+
- name: Repository Owner to Lowercase
85+
id: lowercase-repo-owner
86+
run: |
87+
echo "::set-output name=owner_lower::${GITHUB_REPOSITORY_OWNER,,}"
8488
- name: Build and Push Container
8589
uses: docker/build-push-action@v6
8690
with:
@@ -90,5 +94,5 @@ jobs:
9094
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v6,linux/arm/v7
9195
tags: ${{ steps.metadata.outputs.tags }}
9296
labels: ${{ steps.metadata.outputs.labels }}
93-
cache-from: type=gha
94-
cache-to: type=gha,mode=max
97+
cache-from: type=registry,ref=ghcr.io/${{ steps.lowercase-repo-owner.outputs.owner_lower }}/jumpbox:buildcache
98+
cache-to: type=registry,ref=ghcr.io/${{ steps.lowercase-repo-owner.outputs.owner_lower }}/jumpbox:buildcache,mode=max

0 commit comments

Comments
 (0)