6 Commits

Author SHA1 Message Date
Florian Walther
e8d34d1bc2 fixed typo 2
Some checks failed
/ push_to_registry (push) Failing after 14s
2026-01-16 22:33:23 +01:00
Florian Walther
520420f863 fixed typo
Some checks failed
/ push_to_registry (push) Failing after 12s
2026-01-16 22:31:04 +01:00
Florian Walther
656c3ab073 workflow docker-build-push set to workflow_dispatch 2026-01-16 22:29:41 +01:00
Florian Walther
162d69cb93 Variablen angepasst
Some checks failed
/ push_to_registry (push) Failing after 2m59s
2026-01-16 22:26:22 +01:00
Florian Walther
c6506dde33 docker-compose.yml added 2026-01-16 22:23:59 +01:00
Florian Walther
11dc42574b workflow docker-build-push deaktiviert
workflow docker-release aktiviert
2026-01-16 22:23:37 +01:00
3 changed files with 42 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
name: Docker Build and Push
on: [push]
#on: [push]
on:
workflow_dispatch:
jobs:
build-and-push:

View File

@@ -0,0 +1,30 @@
iname: Docker Release Build
on:
push:
tags:
- 'v*' # Reagiert auf Tags die mit 'v' beginnen, z.B. v1.0.2
jobs:
push_to_registry:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Gitea
uses: docker/login-action@v3
with:
registry: ${{ REGISTRY_URL }} # gitea.scu.si
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
# Hier wird die Git-Referenz automatisch als Docker-Tag genutzt
#tags: gitea.scu.si/florianwalther/password-generator:${{ gitea.ref_name }}
tags: |
gitea.scu.si/florianwalther/password-generator:${{ gitea.ref_name }}
gitea.scu.si/florianwalther/password-generator:latest

9
docker-compose.yml Normal file
View File

@@ -0,0 +1,9 @@
services:
password-generator:
image: gitea.scu.si/florianwalther/password-generator:latest
container_name: password-generator
restart: always
ports:
- "8080:8080"
# Falls die Registry privat ist, muss der Host zuvor mit
# 'docker login gitea.scu.si' angemeldet worden sein.