Compare commits
24
Commits
1350c2b638
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f7a70001a | ||
|
|
ea86fd75ec | ||
|
|
650a11231a | ||
|
|
e543c60ed5 | ||
|
|
799cc9597c | ||
|
|
a6f1c0e967 | ||
|
|
26bb103535 | ||
|
|
756799feb6 | ||
|
|
2db0cc3ecb | ||
|
|
0a950cefe2 | ||
|
|
c32c4de654 | ||
|
|
51c024edde | ||
|
|
af3b084ee9 | ||
|
|
362fb5e190 | ||
|
|
bef5493dc1 | ||
|
|
ef5ec56c24 | ||
|
|
6a3488eb41 | ||
|
|
48733ff07c | ||
|
|
fd8f8c5067 | ||
|
|
4e1183214f | ||
|
|
a55d48c48e | ||
|
|
7e989f1408 | ||
|
|
71fa841085 | ||
|
|
d10473eaca |
No files matched your search
@@ -1,50 +1,58 @@
|
|||||||
name: Docker Build & Push
|
name: Docker Build & Push
|
||||||
|
run-name: Release ${{ gitea.ref_name }}
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
releases: write
|
||||||
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- name: Code auschecken
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- 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:latest
|
|
||||||
127.0.0.1:3000/rudi/tandur:${{ gitea.ref_name }}
|
|
||||||
|
|
||||||
- name: Images zu Gitea pushen
|
|
||||||
run: |
|
|
||||||
docker push 127.0.0.1:3000/rudi/tandur:latest
|
|
||||||
docker push 127.0.0.1:3000/rudi/tandur:${{ gitea.ref_name }}
|
|
||||||
|
|
||||||
release:
|
|
||||||
if: startsWith(gitea.ref, 'refs/tags/v')
|
|
||||||
needs: docker
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Code auschecken
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Gitea Release erstellen
|
- name: Log in to Gitea Container Registry
|
||||||
uses: https://gitea.com/actions/release-action@main
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
api_key: '${{ secrets.TOKEN }}'
|
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
|
||||||
|
uses: https://gitea.com/actions/gitea-release-action@main
|
||||||
|
with:
|
||||||
|
body_path: release_notes.md
|
||||||
|
prerelease: ${{ contains(gitea.ref_name, '-rc') || contains(gitea.ref_name, '-beta') || contains(gitea.ref_name, '-alpha') }}
|
||||||
|
files: |
|
||||||
|
example.docker-compose.yaml
|
||||||
|
example.env
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
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
|
||||||
|
```
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
services:
|
||||||
|
tandur:
|
||||||
|
image: git.schamagusa.de/rudi/tandur:latest
|
||||||
|
container_name: tandur
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "8000:8000"
|
||||||
|
volumes:
|
||||||
|
- tandur-data:/app/data
|
||||||
|
#environment:
|
||||||
|
# - TZ=Europe/Berlin
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
tandur-data:
|
||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
# Einvironment Variablen
|
||||||
|
|
||||||
|
API_KEY=
|
||||||
|
|
||||||
|
|
||||||
|
TANDOOR_URL =
|
||||||
|
|
||||||
|
SECRET_KEY =
|
||||||
|
#ALGORITHM = "HS256"
|
||||||
|
#ACCESS_TOKEN_EXPIRE_MINUTES = 30
|
||||||
Reference in new issue
Block a user