Skip to content

Commit 9a39496

Browse files
committed
ci(docker): allow manual build version override
1 parent 0be4ebe commit 9a39496

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/docker-image.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
tags:
66
- 'v*'
77
workflow_dispatch:
8+
inputs:
9+
build_version:
10+
description: 'Version label shown in the admin UI, e.g. 2.0.6'
11+
required: false
12+
type: string
813

914
permissions:
1015
contents: read
@@ -58,7 +63,7 @@ jobs:
5863
tags: ${{ steps.meta.outputs.tags }}
5964
labels: ${{ steps.meta.outputs.labels }}
6065
build-args: |
61-
BUILD_VERSION=${{ github.ref_name }}
66+
BUILD_VERSION=${{ inputs.build_version || github.ref_name }}
6267
cache-from: type=gha
6368
cache-to: type=gha,mode=max
6469
provenance: false

0 commit comments

Comments
 (0)