Use Github Actions for Docker build caches (#459)

This commit is contained in:
Nguyen Thai
2024-03-15 22:13:02 +07:00
committed by GitHub
parent f777f55136
commit 47daa53705
2 changed files with 8 additions and 2 deletions
+3
View File
@@ -85,3 +85,6 @@ jobs:
${{ steps.meta.outputs.bake-file }}
push: true
targets: ${{ matrix.targets }}
set: |
_common.cache-to=type=gha,mode=max
_common.cache-from=type=gha
+5 -2
View File
@@ -1,4 +1,4 @@
name: Publish Feature Brunch
name: Publish Feature Branch
on:
push:
@@ -55,7 +55,7 @@ jobs:
uses: docker/metadata-action@v5
with:
tags: |
${{ github.head_ref || github.ref_name }}
${{ github.head_ref || github.ref_name }}
- name: Login to Docker Hub
uses: docker/login-action@v3
@@ -79,3 +79,6 @@ jobs:
${{ steps.meta.outputs.bake-file }}
push: true
targets: ${{ matrix.targets }}
set: |
_common.cache-to=type=gha,mode=max
_common.cache-from=type=gha