rework build, requirements and pipline

This commit is contained in:
2026-01-18 23:55:52 +01:00
parent 4170a3f3b4
commit 97737c8b73
10 changed files with 80 additions and 79 deletions

View File

@@ -1,12 +1,13 @@
name: release-tag
name: build-image
run-name: build and push Docker-Image
on:
workflow_dispatch: # Manuelles Auslösen des Workflows
inputs:
image_tag:
description: 'Tag für das Docker-Image (z.B. latest oder v1.0.0)'
description: '2. Tag für das Docker-Image (z.B. 1.0.0)'
required: true
default: 'latest'
default: '0.3.0'
env:
image_name: doc_rudi
@@ -31,12 +32,6 @@ jobs:
username: ${{ env.user }}
password: ${{ secrets.DOCKER_PULL_TOKEN }}
- name: Get Meta
id: meta
run: |
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
echo DOCKERFILE_VERSION=$(grep 'LABEL version=' Dockerfile | sed 's/.*LABEL version="\([^"]*\)".*/\1/') >> $GITHUB_OUTPUT
- name: Build and push
run: |
# Stelle sicher, dass Buildx aktiviert ist
@@ -46,7 +41,6 @@ jobs:
docker buildx build \
--file ./Dockerfile \
--platform linux/amd64,linux/386,linux/arm64,linux/arm/v7 \
--tag ${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:${{ steps.meta.outputs.REPO_VERSION }} \
--tag ${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:${{ steps.meta.outputs.DOCKERFILE_VERSION }} \
--tag ${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:latest \
--tag ${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:${{ github.event.inputs.image_tag }} \
--push ./