Skip to content

Commit aabde27

Browse files
committed
ci: add manual workflow trigger for testing
1 parent a4b2a16 commit aabde27

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/release-image.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
- edited
99
- prereleased
1010
- published
11+
workflow_dispatch:
12+
inputs:
13+
tag:
14+
description: "Tag to be used"
15+
required: true
16+
type: string
1117
env:
1218
IMAGE_NAME: useink/ci
1319

@@ -38,6 +44,16 @@ jobs:
3844
${{ env.IMAGE_NAME }}:master
3945
${{ env.IMAGE_NAME }}:latest
4046
47+
- name: Build and push Docker image from manual trigger
48+
if: ${{ github.event_name == 'workflow_dispatch' }}
49+
uses: docker/build-push-action@v6
50+
with:
51+
context: .
52+
file: ./ci/Dockerfile
53+
push: true
54+
tags: |
55+
${{ env.IMAGE_NAME }}:${{ github.event.inputs.tag }}
56+
4157
# Store the version, stripping any v-prefix
4258
- name: Write release version
4359
if: ${{ github.event_name == 'release' }}

0 commit comments

Comments
 (0)