3 Commits
Author SHA1 Message Date
rudi c32c4de654 Merge pull request 'Workflow' (#21) from workflow into main
Reviewed-on: #21
2026-08-28 19:14:37 +00:00
rudi 362fb5e190 Merge pull request 'YAML fix' (#20) from workflow into main
Reviewed-on: #20
2026-08-28 19:03:32 +00:00
rudi ef5ec56c24 Merge pull request 'Workflow' (#19) from workflow into main
Reviewed-on: #19
2026-08-28 19:00:39 +00:00
4 changed files with 49 additions and 75 deletions

No files matched your search

+49 -43
View File
@@ -1,58 +1,64 @@
name: Docker Build & Push
run-name: Release ${{ gitea.ref_name }}
on:
push:
tags:
- 'v*'
jobs:
build-and-push:
build:
runs-on: ubuntu-latest
permissions:
releases: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Code auschecken
uses: actions/checkout@v3
- name: Bei Gitea Container Registry anmelden
uses: docker/login-action@v2
with:
registry: 127.0.0.1:3000
username: ${{ gitea.actor }}
password: ${{ secrets.token }}
- name: Docker Image bauen (nur lokal im Runner)
uses: docker/build-push-action@v4
with:
context: .
push: false
tags: |
127.0.0.1:3000/rudi/tandur:${{ gitea.ref_name }}
127.0.0.1:3000/rudi/tandur:latest
- name: Images zu Gitea pushen
run: |
docker push 127.0.0.1:3000/rudi/tandur:${{ gitea.ref_name }}
docker push 127.0.0.1:3000/rudi/tandur:latest
release:
if: startsWith(gitea.ref, 'refs/tags/v')
needs: build
runs-on: ubuntu-latest
steps:
- name: Code auschecken
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: git.schamagusa.de
username: ${{ gitea.actor }}
password: ${{ secrets.RELEASE_TOKEN }}
# 'toLower()' is not implemented
- name: Repository kleinschreiben
id: lowercase
env:
REPO: ${{ gitea.repository }}
run: |
echo "repo=$(printf '%s' "$REPO" | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
- name: Build and push Docker image
uses: docker/build-push-action@v5
env:
REPO: ${{ gitea.repository }}
with:
context: .
push: true
tags: |
git.schamagusa.de/${{ steps.lowercase.outputs.repo }}:${{ gitea.ref_name }}
git.schamagusa.de/${{ steps.lowercase.outputs.repo }}:latest
- name: Prepare release notes
run: |
sed "s|{{VERSION}}|${{ gitea.ref_name }}|g" CHANGELOG.md > release_notes.md
cat release_notes.md
- name: Create Release
- name: Gitea Release erstellen
uses: https://gitea.com/actions/gitea-release-action@main
with:
body_path: release_notes.md
api_key: '${{ secrets.TOKEN }}'
prerelease: ${{ contains(gitea.ref_name, '-rc') || contains(gitea.ref_name, '-beta') || contains(gitea.ref_name, '-alpha') }}
files: |
example.docker-compose.yaml
example.env
files: |-
docker-compose.yaml
body: |
## Docker Image:
```bash
docker pull git.schamagusa.de/rudi/tandur:latest
```
## Docker Compose
Download the `docker-compose.yaml`
and then
```bash
docker compose pull
docker compose up -d
```
-22
View File
@@ -1,22 +0,0 @@
This version includes a new workflow file, so the Releases come faster and better to you
## New Features
- Workflow with better description and performance
## Bug fixes
- added 'toLower' function to workflow
---
### Installation
> **Note:** This guide assumes that Docker and Docker Compose are already installed.
Download the `example.env` and the `example.docker-compose.yaml`, edit those and rename to `.env` and `docker-compose.yaml`.
Then run
```bash
docker compose pull
docker compose up -d
```
File renamed without changes.
-10
View File
@@ -1,10 +0,0 @@
# Einvironment Variablen
API_KEY=
TANDOOR_URL =
SECRET_KEY =
#ALGORITHM = "HS256"
#ACCESS_TOKEN_EXPIRE_MINUTES = 30