Update action.yml

This commit is contained in:
2024-12-04 10:51:54 +02:00
parent 8e0f15b819
commit 3638a0a6a7

View File

@@ -37,7 +37,7 @@ runs:
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1 uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
with: with:
flavor: | flavor: |
latest=${{ github.ref == 'refs/heads/main' }} latest=${{ github.ref_name == 'main' || github.ref_name == 'master' }}
tags: | tags: |
type=ref,event=branch type=ref,event=branch
type=semver,pattern={{version}},value=${{steps.tag.outputs.tag}} type=semver,pattern={{version}},value=${{steps.tag.outputs.tag}}
@@ -74,7 +74,7 @@ runs:
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.registry }}/${{ inputs.image_name }}-cache:latest
type=registry,ref=${{ inputs.registry }}/${{ inputs.image_name }}-cache:main type=registry,ref=${{ inputs.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 }}