fix docker build

This commit is contained in:
Ronald A. Richardson
2025-05-20 10:06:26 +08:00
parent 2b959db773
commit c59f028755
6 changed files with 9 additions and 28 deletions

View File

@@ -4,12 +4,15 @@ on:
push:
tags:
- 'v*'
workflow_dispatch: # 👈 enables manual trigger
workflow_dispatch:
inputs:
branch:
description: 'Branch to build from'
required: false
default: 'main'
version:
description: 'Image version tag (e.g., v0.7.1-beta)'
required: false
jobs:
docker-release:
@@ -18,7 +21,7 @@ jobs:
env:
REGISTRY: fleetbase
VERSION: ${{ github.event.inputs.branch || github.ref_name || 'manual' }}
VERSION: ${{ github.event.inputs.version || (github.ref_type == 'tag' && startsWith(github.ref_name, 'v') && github.ref_name) || 'manual' }}
steps:
- name: Checkout Repo