Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: add custom tag input to build-push-action-image workflow (#19534)

rebelice8c51a067aa68
diff --git a/.github/workflows/build-push-action-image.yml b/.github/workflows/build-push-action-image.yml
index 8301644bbd..77442b6e7e 100644
--- a/.github/workflows/build-push-action-image.yml
+++ b/.github/workflows/build-push-action-image.yml
@@ -2,6 +2,11 @@ name: Build push action image
on:
workflow_dispatch:
+ inputs:
+ tag:
+ description: 'Image tag (e.g., latest, 1.0.0)'
+ required: false
+ default: ''
push:
branches:
- 'release/*.*.*'
@@ -21,7 +26,9 @@ jobs:
- name: Extract build args
id: extract_build_args
run: |
- if [[ "${{ github.ref_name }}" =~ ^release/[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+ if [[ -n "${{ inputs.tag }}" ]]; then
+ VERSION="${{ inputs.tag }}"
+ elif [[ "${{ github.ref_name }}" =~ ^release/[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
VERSION=$(echo "${{ github.ref_name }}" | sed 's/release\///')
else
VERSION="latest"
@@ -56,7 +63,9 @@ jobs:
- name: Extract build args
id: extract_build_args
run: |
- if [[ "${{ github.ref_name }}" =~ ^release/[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+ if [[ -n "${{ inputs.tag }}" ]]; then
+ VERSION="${{ inputs.tag }}"
+ elif [[ "${{ github.ref_name }}" =~ ^release/[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
VERSION=$(echo "${{ github.ref_name }}" | sed 's/release\///')
else
VERSION="latest"