Skip to content

Commit be6fcda

Browse files
committed
Add manually triggered option to release workflow
1 parent 4295608 commit be6fcda

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/release-version.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ on:
55
tags:
66
- "*"
77
workflow_dispatch:
8+
inputs:
9+
image-tag:
10+
description: Docker image tag to publish
11+
required: true
12+
type: string
13+
ref:
14+
description: Git ref to build (branch, tag, or commit SHA)
15+
required: true
16+
type: string
817

918
jobs:
1019
release-docker-image-jvm:
@@ -13,11 +22,13 @@ jobs:
1322
steps:
1423
- name: Checkout Code
1524
uses: actions/checkout@v3
25+
with:
26+
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref }}
1627
- name: Build and Push Image
1728
uses: explorviz/deployment/.github/actions/build-and-deploy-quarkus-jvm@main
1829
with:
1930
platforms: "linux/amd64,linux/arm64/v8"
2031
docker-username: ${{ secrets.DOCKER_USERNAME }}
2132
docker-password: ${{ secrets.DOCKER_PASSWORD }}
2233
image-name: ${{ vars.DOCKER_JVM_IMAGE_NAME }}
23-
image-tag: "${{ github.ref_name }}"
34+
image-tag: ${{ github.event_name == 'workflow_dispatch' && inputs.image-tag || github.ref_name }}

0 commit comments

Comments
 (0)