ci: reuse image layers via registry build cache
CI / Code Health (pull_request) Successful in 17s
CI / Lint, Test & Build (pull_request) Successful in 1m39s

Add setup-buildx (docker-container driver) and pull/push the build cache from <image>:buildcache.
This commit is contained in:
fristy committed 2026-10-30 20:26:14 +03:00
1 parent ff18fc353d
commit b4ff239ab3
1 file changed
+4
+4
View File
@@ -29,6 +29,8 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Set up Buildx
uses: docker/setup-buildx-action@v3
- name: Resolve tags
id: meta
uses: docker/metadata-action@v5
@@ -43,6 +45,8 @@ jobs:
with:
context: .
push: true
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}