Skip to content

Commit dbef757

Browse files
ci: PLT-690: Add workflow dispatch
1 parent ca9d79f commit dbef757

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/release-pipeline.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: "Release: Pipeline"
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Commit SHA or ref name or tag'
8+
required: true
9+
default: 'master'
10+
type: string
411
release:
512
types:
613
- released
@@ -34,7 +41,7 @@ jobs:
3441

3542
- uses: actions/checkout@v4
3643
with:
37-
ref: "${{ env.GITHUB_SHA }}"
44+
ref: "${{ inputs.ref || github.ref_name }}"
3845

3946
- name: Set up Docker Buildx
4047
uses: docker/[email protected]
@@ -55,7 +62,7 @@ jobs:
5562
DOCKER_BUILD_RECORD_UPLOAD: "false"
5663
with:
5764
context: "${{ env.DOCKER_EXAMPLES_DIRECTORY }}/${{ env.backend_dir_name }}"
58-
tags: "${{ matrix.backend_tag_prefix }}${{ github.ref_name }}"
65+
tags: "${{ matrix.backend_tag_prefix }}${{ inputs.ref || github.ref_name }}"
5966
cache-from: type=gha
6067
cache-to: type=gha,mode=max
6168

0 commit comments

Comments
 (0)