add checkout-ref paramter

This commit is contained in:
2026-02-28 23:35:05 +01:00
parent 83723bd989
commit 03513bb1e4
2 changed files with 10 additions and 0 deletions

View File

@@ -12,6 +12,10 @@ inputs:
description: Override image tag (defaults to standard tags)
required: false
default: ""
checkout_ref:
description: Git ref to checkout before build (e.g. refs/tags/v1.2.3)
required: false
default: ""
dockerfile:
description: Path to Dockerfile
required: false
@@ -42,6 +46,7 @@ runs:
with:
fetch-depth: 0
fetch-tags: true
ref: ${{ inputs.checkout_ref != '' && inputs.checkout_ref || '' }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

View File

@@ -12,6 +12,10 @@ inputs:
description: Override image tag (defaults to standard tags)
required: false
default: ""
checkout_ref:
description: Git ref to checkout before build (e.g. refs/tags/v1.2.3)
required: false
default: ""
dockerfile:
description: Path to Dockerfile
required: false
@@ -38,6 +42,7 @@ runs:
with:
fetch-depth: 0
fetch-tags: true
ref: ${{ inputs.checkout_ref != '' && inputs.checkout_ref || '' }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3