Some checks failed
Auto Build and Push Docker Image / build (push) Failing after 8s
- Modular Discord Bot mit TypeScript und discord.js - Grouped Commands (/admin, /owner subcommands) - SQLite Datenbank mit Persistenz - Twitch Monitoring mit Stream-ID Tracking - Konfigurierbares Warn-System (Auto-Kick/Mute/Ban) - Mute mit verschiedenen Zeiteinheiten (sec, min, hour, day, week, month, year, perm) - Auto-Deploy beim Start (Option 3) - Docker Support Features: - /ping, /help, /twitch (online, add, remove, list) - /admin (kick, warn, unwarn, mute, unmute, ban, unban, config) - /owner (deploy, stats, servers) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag_name:
|
|
description: 'Version (z.B. 1.0.0). Leer lassen für automatische v-Nummer.'
|
|
required: false
|
|
default: ''
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Build and Push to local registry
|
|
run: |
|
|
REGISTRY="192.168.88.201:5000"
|
|
# Hier wird automatisch der Name des neuen Projekts eingesetzt:
|
|
IMAGE_NAME="${{ gitea.repository }}"
|
|
|
|
if [ -z "${{ github.event.inputs.tag_name }}" ]; then
|
|
VERSION="v${{ gitea.run_number }}"
|
|
else
|
|
VERSION="${{ github.event.inputs.tag_name }}"
|
|
fi
|
|
|
|
FULL_IMAGE_PATH="$REGISTRY/$IMAGE_NAME"
|
|
|
|
docker build -t $FULL_IMAGE_PATH:latest .
|
|
docker tag $FULL_IMAGE_PATH:latest $FULL_IMAGE_PATH:$VERSION
|
|
|
|
docker push $FULL_IMAGE_PATH:latest
|
|
docker push $FULL_IMAGE_PATH:$VERSION |