Skip to content

Commit

Permalink
Move Docker build caching to GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
sethforprivacy committed Jul 12, 2024
1 parent 99608ae commit bc1d4af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-image-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
load: true
platforms: linux/amd64
tags: simple-monerod:alpine-test
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/simple-monerod:latest
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/simple-monerod:latest
-
name: Test-run x86_64 image
run: |
Expand All @@ -53,4 +53,5 @@ jobs:
load: true
platforms: linux/arm64
tags: simple-monerod:alpine-test
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/simple-monerod:latest
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/simple-monerod:latest
cache-to: type=inline
2 changes: 2 additions & 0 deletions .github/workflows/update-base-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,5 @@ jobs:
org.opencontainers.image.source=${{ github.event.repository.html_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/simple-monerod:latest
cache-to: type=inline
2 changes: 1 addition & 1 deletion .github/workflows/update-image-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ jobs:
org.opencontainers.image.source=${{ github.event.repository.html_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/simple-monerod:latest
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/simple-monerod:latest
cache-to: type=inline

0 comments on commit bc1d4af

Please sign in to comment.