diff --git a/action.yml b/action.yml index 6a8f6e5..d0ffe8c 100644 --- a/action.yml +++ b/action.yml @@ -5,6 +5,10 @@ inputs: description: 'docker regisry host name' required: true default: 'gitea.phadric.de' + cache-registry: # id of input + description: 'docker regisry host name' + required: true + default: 'imagecache:5000' image_name: description: 'name of the dockerimage' required: true @@ -54,7 +58,7 @@ runs: - uses: int128/docker-build-cache-config-action@338206c80bf9eeb2b9694b7b4fc8c247c317e2a8 # v1.38.0 id: cache with: - image: ${{ inputs.registry }}/${{ inputs.image_name }}-cache + image: ${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache extra-cache-to: image-manifest=true - run: echo "::endgroup::" - run: echo "::group::Setup Buildx" @@ -80,10 +84,10 @@ runs: platforms: linux/amd64 labels: ${{ steps.meta.outputs.labels }} cache-from: | - type=registry,ref=${{ inputs.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:latest + type=registry,ref=${{ inputs.cache-registry }}/${{ inputs.image_name }}-cache:${{ github.ref_name }} ${{ steps.cache.outputs.cache-from }} 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::" \ No newline at end of file