feat: Gitea Actions CI + env file + Gitea registry image
Some checks failed
Build & Push Docker Image / build (push) Failing after 1m50s
Some checks failed
Build & Push Docker Image / build (push) Failing after 1m50s
- .gitea/workflows/docker.yml: builds and pushes image to git.albert-zangerl.com/al/logwatch on every push to main and on version tags (v*) - stack.env.example: template for environment variables - stack.env: gitignored, lives on docker.lan next to the stack - portainer-stack.yml: updated to use Gitea registry image and env_file reference Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
40
.gitea/workflows/docker.yml
Normal file
40
.gitea/workflows/docker.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Build & Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to Gitea Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.albert-zangerl.com
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.GITEA_TOKEN }}
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: git.albert-zangerl.com/al/logwatch
|
||||
tags: |
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,4 +3,5 @@ __pycache__/
|
||||
*.pyo
|
||||
.env
|
||||
.env.local
|
||||
stack.env
|
||||
*.log
|
||||
|
||||
@@ -6,9 +6,9 @@ services:
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# ntfy source channel (your Watchtower notifications)
|
||||
- SOURCE_URL=http://192.168.123.77/albert
|
||||
- SOURCE_URL=https://ntfy.albert-zangerl.com/albert
|
||||
# ntfy target channel (where important stuff goes)
|
||||
- TARGET_URL=http://192.168.123.77/wichtig
|
||||
- TARGET_URL=https://ntfy.albert-zangerl.com/wichtig
|
||||
# optional: Bearer token if target channel needs auth
|
||||
# - TARGET_TOKEN=your-token-here
|
||||
- LOG_LEVEL=INFO
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
services:
|
||||
logwatch:
|
||||
image: logwatch:latest
|
||||
image: git.albert-zangerl.com/al/logwatch:latest
|
||||
container_name: logwatch
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- SOURCE_URL=https://ntfy.albert-zangerl.com/albert
|
||||
- TARGET_URL=https://ntfy.albert-zangerl.com/wichtig
|
||||
# - TARGET_TOKEN=your-token-here
|
||||
- LOG_LEVEL=INFO
|
||||
- RECONNECT_DELAY=10
|
||||
env_file:
|
||||
- stack.env
|
||||
|
||||
11
stack.env.example
Normal file
11
stack.env.example
Normal file
@@ -0,0 +1,11 @@
|
||||
# ntfy source channel (Watchtower notifications)
|
||||
SOURCE_URL=https://ntfy.albert-zangerl.com/albert
|
||||
|
||||
# ntfy target channel (important notifications only)
|
||||
TARGET_URL=https://ntfy.albert-zangerl.com/wichtig
|
||||
|
||||
# Optional: Bearer token for protected ntfy target channel
|
||||
# TARGET_TOKEN=
|
||||
|
||||
LOG_LEVEL=INFO
|
||||
RECONNECT_DELAY=10
|
||||
Reference in New Issue
Block a user