mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 00:11:48 -06:00
add gha cache.
This commit is contained in:
@@ -41,6 +41,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.name }}
|
||||||
flavor: intel
|
flavor: intel
|
||||||
platforms: linux/amd64
|
platforms: ${{ matrix.platforms }}
|
||||||
dockerfile: ${{ matrix.dockerfile }}
|
dockerfile: ${{ matrix.dockerfile }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|||||||
@@ -37,6 +37,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.name }}
|
||||||
flavor: nvidia
|
flavor: nvidia
|
||||||
platforms: linux/amd64
|
platforms: ${{ matrix.platforms }}
|
||||||
dockerfile: ${{ matrix.dockerfile }}
|
dockerfile: ${{ matrix.dockerfile }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|||||||
@@ -71,3 +71,5 @@ jobs:
|
|||||||
build-args: |
|
build-args: |
|
||||||
BASE_IMAGE=ghcr.io/${{ github.repository }}/${{ env.FLAVOR_PREFIX }}base:sha-${{ github.sha }}
|
BASE_IMAGE=ghcr.io/${{ github.repository }}/${{ env.FLAVOR_PREFIX }}base:sha-${{ github.sha }}
|
||||||
platforms: ${{ inputs.platforms || 'linux/amd64' }}
|
platforms: ${{ inputs.platforms || 'linux/amd64' }}
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
|
|||||||
@@ -80,3 +80,5 @@ jobs:
|
|||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
platforms: ${{ inputs.platforms || 'linux/amd64' }}
|
platforms: ${{ inputs.platforms || 'linux/amd64' }}
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
|
|||||||
Reference in New Issue
Block a user