add checkout-ref paramter
This commit is contained in:
@@ -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
|
||||
|
||||
5
.github/actions/build-and-push/action.yaml
vendored
5
.github/actions/build-and-push/action.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user