ci/cd: Add registry as source to cache-from for buildx
This commit is contained in:
6
.github/workflows/build-and-test.yml
vendored
6
.github/workflows/build-and-test.yml
vendored
@@ -8,7 +8,7 @@ on:
|
||||
env:
|
||||
IMAGE_NAME: localhost:5000/cdalvaro/docker-salt-master:ci
|
||||
REGISTRY_PATH: ${{ github.workspace }}/registry
|
||||
CACHE_PATH: /tmp/.buildx-docker-salt-master-cache
|
||||
CACHE_PATH: /tmp/.buildx-cache
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -44,7 +44,9 @@ jobs:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
cache-from: type=local,src=${{ env.CACHE_PATH }}
|
||||
cache-from: |
|
||||
type=local,src=${{ env.CACHE_PATH }}
|
||||
ghcr.io/cdalvaro/docker-salt-master:latest
|
||||
cache-to: type=local,dest=${{ env.CACHE_PATH }}
|
||||
push: true
|
||||
tags: ${{ env.IMAGE_NAME }}
|
||||
|
||||
Reference in New Issue
Block a user