chore: better and more secure docker cache

This commit is contained in:
2025-11-03 13:15:10 -03:00
parent 1d888df5c2
commit 701ae24981
2 changed files with 11 additions and 6 deletions

View File

@@ -1,11 +1,12 @@
node_modules
dist
node_modules/*
dist/*
.k8s/*
.github/*
.github
.gitignore
.dockerignore
Dockerfile
README.md
.k8s
.env
.secret

View File

@@ -80,8 +80,12 @@ jobs:
tags: |
${{ env.IMAGE_LATEST }}
${{ env.IMAGE_SHA }}
cache-from: type=registry,ref=ghcr.io/hideyoshisolutions/frontend-hideyoshi.com:cache
cache-to: type=registry,ref=ghcr.io/hideyoshisolutions/frontend-hideyoshi.com:cache,mode=max
cache-from: |
type=registry,ref=ghcr.io/hideyoshisolutions/frontend-hideyoshi.com:cache-${{ github.ref_name }}-amd64
type=registry,ref=ghcr.io/hideyoshisolutions/frontend-hideyoshi.com:cache-${{ github.ref_name }}-arm64
cache-to: |
type=registry,ref=ghcr.io/hideyoshisolutions/frontend-hideyoshi.com:cache-${{ github.ref_name }}-amd64,mode=max,platform=linux/amd64
type=registry,ref=ghcr.io/hideyoshisolutions/frontend-hideyoshi.com:cache-${{ github.ref_name }}-arm64,mode=max,platform=linux/arm64
deploy:
needs: [docker]