mirror of
https://github.com/logos-storage/github-actions.git
synced 2026-01-08 08:03:09 +00:00
feat: long sha support
This commit is contained in:
parent
dcc268ee66
commit
79b6090f1f
7
.github/workflows/docker-reusable.yml
vendored
7
.github/workflows/docker-reusable.yml
vendored
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user