This commit is contained in:
12
action.yml
12
action.yml
@@ -5,6 +5,10 @@ inputs:
|
|||||||
description: 'docker regisry host name'
|
description: 'docker regisry host name'
|
||||||
required: true
|
required: true
|
||||||
default: 'gitea.phadric.de'
|
default: 'gitea.phadric.de'
|
||||||
|
cache-registry: # id of input
|
||||||
|
description: 'docker regisry host name'
|
||||||
|
required: true
|
||||||
|
default: 'imagecache:5000'
|
||||||
image_name:
|
image_name:
|
||||||
description: 'name of the dockerimage'
|
description: 'name of the dockerimage'
|
||||||
required: true
|
required: true
|
||||||
@@ -54,7 +58,7 @@ runs:
|
|||||||
- uses: int128/docker-build-cache-config-action@338206c80bf9eeb2b9694b7b4fc8c247c317e2a8 # v1.38.0
|
- uses: int128/docker-build-cache-config-action@338206c80bf9eeb2b9694b7b4fc8c247c317e2a8 # v1.38.0
|
||||||
id: cache
|
id: cache
|
||||||
with:
|
with:
|
||||||
image: ${{ inputs.registry }}/${{ inputs.image_name }}-cache
|
image: ${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache
|
||||||
extra-cache-to: image-manifest=true
|
extra-cache-to: image-manifest=true
|
||||||
- run: echo "::endgroup::"
|
- run: echo "::endgroup::"
|
||||||
- run: echo "::group::Setup Buildx"
|
- run: echo "::group::Setup Buildx"
|
||||||
@@ -80,10 +84,10 @@ runs:
|
|||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: |
|
cache-from: |
|
||||||
type=registry,ref=${{ inputs.registry }}/${{ inputs.image_name }}-cache:latest
|
type=registry,ref=${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache:latest
|
||||||
type=registry,ref=${{ inputs.registry }}/${{ inputs.image_name }}-cache:${{ github.ref_name }}
|
type=registry,ref=${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache:${{ github.ref_name }}
|
||||||
${{ steps.cache.outputs.cache-from }}
|
${{ steps.cache.outputs.cache-from }}
|
||||||
cache-to: |
|
cache-to: |
|
||||||
${{ steps.cache.outputs.cache-to }}
|
${{ steps.cache.outputs.cache-to }}
|
||||||
type=registry,ref=${{ inputs.registry }}/${{ inputs.image_name }}-cache:latest,mode=max,image-manifest=true
|
type=registry,ref=${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache:latest,mode=max,image-manifest=true
|
||||||
- run: echo "::endgroup::"
|
- run: echo "::endgroup::"
|
||||||
Reference in New Issue
Block a user