Skip to content

Commit 16d7682

Browse files
authored
Allow manual image build
1 parent cdaa9b8 commit 16d7682

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
tags:
66
- '*'
7+
workflow_dispatch:
8+
inputs:
9+
version:
10+
required: true
11+
type: string
712

813
env:
914
DOCKER_IMAGE_URL: ${{ vars.REPO_DOCKER_IMAGE_URL }}
@@ -22,7 +27,7 @@ jobs:
2227

2328
- name: Set Gateway Version
2429
id: set_version
25-
run: echo "GATEWAY_VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo 'unknown')" >> $GITHUB_OUTPUT
30+
run: echo "GATEWAY_VERSION=$(echo '${{ inputs.version }}' || git describe --tags --abbrev=0 2>/dev/null || echo 'unknown')" >> $GITHUB_OUTPUT
2631

2732
- name: Google auth
2833
id: auth

0 commit comments

Comments
 (0)