Optimize dev workflow with separate cache
Build and Push (main) / build (push) Canceled after 0s

This commit is contained in:
2026-08-07 00:48:41 +00:00
parent 6bcb89ffd0
commit adf963a1a7
+6 -2
View File
@@ -16,6 +16,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -40,7 +42,9 @@ jobs:
tags: |
git.sakamoto.best/lolz/auto-stars:${{ steps.vars.outputs.SHORT_SHA }}
git.sakamoto.best/lolz/auto-stars:dev
cache-from: type=registry,ref=git.sakamoto.best/lolz/auto-stars:buildcache
cache-to: type=registry,ref=git.sakamoto.best/lolz/auto-stars:buildcache,mode=max
cache-from: type=registry,ref=git.sakamoto.best/lolz/auto-stars:buildcache-dev
cache-to: type=registry,ref=git.sakamoto.best/lolz/auto-stars:buildcache-dev,mode=max
provenance: false
sbom: false
build-args: |
BUILDKIT_INLINE_CACHE=1