We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4b2a16 commit aabde27Copy full SHA for aabde27
.github/workflows/release-image.yml
@@ -8,6 +8,12 @@ on:
8
- edited
9
- prereleased
10
- published
11
+ workflow_dispatch:
12
+ inputs:
13
+ tag:
14
+ description: "Tag to be used"
15
+ required: true
16
+ type: string
17
env:
18
IMAGE_NAME: useink/ci
19
@@ -38,6 +44,16 @@ jobs:
38
44
${{ env.IMAGE_NAME }}:master
39
45
${{ env.IMAGE_NAME }}:latest
40
46
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
+
41
57
# Store the version, stripping any v-prefix
42
58
- name: Write release version
43
59
if: ${{ github.event_name == 'release' }}
0 commit comments