This commit is contained in:
2025-07-22 15:16:33 +02:00
parent 872ec5fa78
commit 4159ff98e7
2 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
name: release-tag
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)'
required: true
default: '0.0.0'
env:
image_name: mysteryhelfer
registry: gitea.tebarius.duckdns.org
user: tebarius
jobs:
release-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Login to Gitea
uses: docker/login-action@v2
with:
registry: ${{ env.registry }}
username: ${{ env.user }}
password: ${{ secrets.DOCKER_PULL_TOKEN }}
- name: Build and push
run: |
cd webapp
# Stelle sicher, dass Buildx aktiviert ist
docker buildx create --use
# Führe den Multiarch-Build aus und pushe das Image
docker buildx build \
--file ./Dockerfile \
--platform linux/amd64,linux/arm64 \
--tag ${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:latest \
--tag ${{ env.registry }}/${{ env.user }}/${{ env.image_name }}:${{ github.event.inputs.image_tag }} \
--push ./

View File

@@ -1,5 +1,8 @@
FROM python:3.13-slim FROM python:3.13-slim
LABEL authors="tebarius"
LABEL description="tebarius Mysteryhelfer web"
WORKDIR /app WORKDIR /app
COPY ./app/* . COPY ./app/* .