refactor: remove push
from cache-from
and cache-to
`push` has no meaning in the context of `cache-from` or `cache-to`. PR: #20
This commit is contained in:
parent
7f4cdc99ef
commit
5ef22c1759
6
.github/workflows/containers.yml
vendored
6
.github/workflows/containers.yml
vendored
@ -23,10 +23,8 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- target: dev
|
- target: dev
|
||||||
cache-to: dev
|
cache-to: dev
|
||||||
push-cache: true
|
|
||||||
- target: build
|
- target: build
|
||||||
cache-to: build
|
cache-to: build
|
||||||
push-cache: false
|
|
||||||
steps:
|
steps:
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
@ -87,8 +85,8 @@ jobs:
|
|||||||
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
|
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
|
||||||
tags: |
|
tags: |
|
||||||
docker.io/${{ secrets.DOCKER_HUB_NAMESPACE }}/${{ steps.vars.outputs.candidate-tag }}
|
docker.io/${{ secrets.DOCKER_HUB_NAMESPACE }}/${{ steps.vars.outputs.candidate-tag }}
|
||||||
cache-from: type=registry,ref=docker.io/${{ secrets.DOCKER_HUB_NAMESPACE }}/${{ steps.vars.outputs.cache-from }},push=false
|
cache-from: type=registry,ref=docker.io/${{ secrets.DOCKER_HUB_NAMESPACE }}/${{ steps.vars.outputs.cache-from }}
|
||||||
cache-to: type=registry,ref=docker.io/${{ secrets.DOCKER_HUB_NAMESPACE }}/${{ steps.vars.outputs.cache-to }},mode=max,push=${{ matrix.push-cache }}
|
cache-to: type=registry,ref=docker.io/${{ secrets.DOCKER_HUB_NAMESPACE }}/${{ steps.vars.outputs.cache-to }},mode=max
|
||||||
push: true
|
push: true
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
if: ${{ !startsWith(github.ref, 'refs/tags') }}
|
if: ${{ !startsWith(github.ref, 'refs/tags') }}
|
||||||
|
Loading…
Reference in New Issue
Block a user