add checkout-ref paramter
This commit is contained in:
@@ -12,6 +12,10 @@ inputs:
|
|||||||
description: Override image tag (defaults to standard tags)
|
description: Override image tag (defaults to standard tags)
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
|
checkout_ref:
|
||||||
|
description: Git ref to checkout before build (e.g. refs/tags/v1.2.3)
|
||||||
|
required: false
|
||||||
|
default: ""
|
||||||
dockerfile:
|
dockerfile:
|
||||||
description: Path to Dockerfile
|
description: Path to Dockerfile
|
||||||
required: false
|
required: false
|
||||||
@@ -42,6 +46,7 @@ runs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
fetch-tags: true
|
fetch-tags: true
|
||||||
|
ref: ${{ inputs.checkout_ref != '' && inputs.checkout_ref || '' }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
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)
|
description: Override image tag (defaults to standard tags)
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
|
checkout_ref:
|
||||||
|
description: Git ref to checkout before build (e.g. refs/tags/v1.2.3)
|
||||||
|
required: false
|
||||||
|
default: ""
|
||||||
dockerfile:
|
dockerfile:
|
||||||
description: Path to Dockerfile
|
description: Path to Dockerfile
|
||||||
required: false
|
required: false
|
||||||
@@ -38,6 +42,7 @@ runs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
fetch-tags: true
|
fetch-tags: true
|
||||||
|
ref: ${{ inputs.checkout_ref != '' && inputs.checkout_ref || '' }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user