Skip to content

Commit e6e71a3

Browse files
committed
ci: add manual trigger support to docker workflow
1 parent 5816bce commit e6e71a3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/docker.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@ on:
44
workflow_run:
55
workflows: [ "Build and Release" ]
66
types: [ completed ]
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: 'Image tag to build and push'
11+
required: true
12+
default: 'latest'
713

814
permissions:
915
contents: read
1016

1117
env:
12-
image_tag: ${{ github.event.workflow_run.head_branch }}
18+
image_tag: ${{ github.event.inputs.tag || github.event.workflow_run.head_branch || 'latest' }}
1319

1420
jobs:
1521
build-and-push:

0 commit comments

Comments
 (0)