feat: long sha support

This commit is contained in:
Adam Uhlíř 2025-04-03 09:54:20 +02:00 committed by GitHub
parent dcc268ee66
commit 79b6090f1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,6 +34,11 @@ on:
description: Set Git short commit as Docker tag description: Set Git short commit as Docker tag
required: false required: false
type: boolean type: boolean
tag_sha_long:
default: false
description: Set Git long commit as Docker tag
required: false
type: boolean
tag_suffix: tag_suffix:
default: '' default: ''
description: Suffix for Docker images tag description: Suffix for Docker images tag
@ -68,6 +73,7 @@ env:
BUILD_ARGS: ${{ inputs.build_args }} BUILD_ARGS: ${{ inputs.build_args }}
TAG_LATEST: ${{ inputs.tag_latest }} TAG_LATEST: ${{ inputs.tag_latest }}
TAG_SHA: ${{ inputs.tag_sha }} TAG_SHA: ${{ inputs.tag_sha }}
TAG_SHA_LONG: ${{ inputs.tag_sha_long }}
TAG_SUFFIX: ${{ inputs.tag_suffix }} TAG_SUFFIX: ${{ inputs.tag_suffix }}
CHECKOUT_FETCH_DEPTH: ${{ inputs.checkout-fetch-depth }} CHECKOUT_FETCH_DEPTH: ${{ inputs.checkout-fetch-depth }}
CHECKOUT_FETCH_TAGS: ${{ inputs.checkout-fetch-tags }} CHECKOUT_FETCH_TAGS: ${{ inputs.checkout-fetch-tags }}
@ -219,6 +225,7 @@ jobs:
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=raw,enable=${{ env.TAG_RAW }},value=latest type=raw,enable=${{ env.TAG_RAW }},value=latest
type=sha,enable=${{ env.TAG_SHA }} type=sha,enable=${{ env.TAG_SHA }}
type=sha,enable=${{ env.TAG_SHA_LONG }},format=long
- name: Docker - Login to Docker Hub - name: Docker - Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v3