Skip to content

Commit 42230cb

Browse files
feat: update the workflow dispatch []
1 parent 512bd3b commit 42230cb

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/sparrow-api-selfhost-publish.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
name: Self-host Docker Image
22
on:
3-
push:
4-
branches: [ release-v2 ]
3+
54
workflow_dispatch:
5+
inputs:
6+
image_version:
7+
description: "Docker image version (e.g. 1.2.3)"
8+
required: true
9+
type: string
610

711
permissions:
812
contents: read
913

10-
env:
11-
DOCKER_IMAGE_VERSION: ${{ vars.SELF_HOST_DOCKER_IMAGE_VERSION }}
12-
1314
jobs:
1415
build:
1516
runs-on: ubuntu-latest
1617
environment: self-host
1718

19+
env:
20+
DOCKER_IMAGE_VERSION: ${{ inputs.image_version }}
21+
1822
steps:
1923
- name: Checkout
2024
uses: actions/checkout@v4

0 commit comments

Comments
 (0)