|
17 | 17 | # If not provided: when triggered by tag push, uses the tag automatically; |
18 | 18 | # when called via workflow_call, defaults to the commit that triggered the workflow |
19 | 19 |
|
| 20 | +concurrency: |
| 21 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 22 | + cancel-in-progress: true |
| 23 | + |
20 | 24 | env: |
21 | 25 | IMAGE_NAME_GHCR: ghcr.io/prizz/opencode-cloud-sandbox |
22 | 26 | IMAGE_NAME_DOCKERHUB: ${{ vars.DOCKERHUB_USERNAME }}/opencode-cloud-sandbox |
@@ -109,7 +113,7 @@ jobs: |
109 | 113 | # Separate cache scope to avoid overwriting the main publish build cache. |
110 | 114 | # GHA cache v2 is the recommended backend going forward. |
111 | 115 | cache-from: type=gha,scope=opencode-cloud-sandbox-test,version=2 |
112 | | - cache-to: type=gha,scope=opencode-cloud-sandbox-test,mode=max,version=2 |
| 116 | + cache-to: type=gha,scope=opencode-cloud-sandbox-test,mode=min,version=2 |
113 | 117 |
|
114 | 118 | # Temporary disabled smoke test |
115 | 119 | # - name: Smoke test - verify container starts and becomes healthy |
@@ -194,8 +198,12 @@ jobs: |
194 | 198 | labels: ${{ steps.meta.outputs.labels }} |
195 | 199 | # Scoped cache prevents thrash between test and publish builds. |
196 | 200 | # GHA cache v2 improves compatibility with the current cache API. |
197 | | - cache-from: type=gha,scope=opencode-cloud-sandbox,version=2 |
198 | | - cache-to: type=gha,scope=opencode-cloud-sandbox,mode=max,version=2 |
| 201 | + cache-from: | |
| 202 | + type=registry,ref=${{ env.IMAGE_NAME_GHCR }}:buildcache |
| 203 | + type=gha,scope=opencode-cloud-sandbox,version=2 |
| 204 | + cache-to: | |
| 205 | + type=registry,ref=${{ env.IMAGE_NAME_GHCR }}:buildcache,mode=max |
| 206 | + type=gha,scope=opencode-cloud-sandbox,mode=min,version=2 |
199 | 207 |
|
200 | 208 | - name: Update Docker Hub description |
201 | 209 | uses: peter-evans/dockerhub-description@v5 |
|
0 commit comments