change build-action to build when tag is set
All checks were successful
build-image / release-image (push) Successful in 3m42s

This commit is contained in:
2026-03-13 18:00:51 +01:00
parent d449fc3481
commit 4aac8c502a

View File

@@ -2,12 +2,9 @@ name: build-image
run-name: build and push Docker-Image
on:
workflow_dispatch: # Manuelles Auslösen des Workflows
inputs:
image_tag:
description: '2. Tag für das Docker-Image (z.B. 1.0.0)'
required: true
default: '0.3.0'
push:
tags:
- "*"
env:
image_name: doc_rudi
@@ -42,5 +39,5 @@ jobs:
--file ./Dockerfile \
--platform linux/amd64,linux/386,linux/arm64,linux/arm/v7 \
--tag ${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:latest \
--tag ${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:${{ github.event.inputs.image_tag }} \
--tag ${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:${{ github.ref_name }} \
--push ./