Publish image to Gitea registry
Some checks failed
Build / test (push) Successful in 13s
Build / container (push) Failing after 39s

This commit is contained in:
MrSphay
2026-05-14 17:45:05 +02:00
parent 0e0a21f508
commit f3608568a0
5 changed files with 75 additions and 1 deletions

View File

@@ -26,7 +26,11 @@ Environment variables:
## Artifact
Container image from `Dockerfile`.
Container image from `Dockerfile` published by Gitea Actions:
```text
git.wilkensxl.de/mrsphay/dockge-image-update-checker:latest
```
## Notes

View File

@@ -24,3 +24,33 @@ jobs:
- name: Build check
run: npm run build
container:
runs-on: ubuntu-latest
needs: test
if: github.event_name != 'pull_request'
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Gitea registry
uses: docker/login-action@v3
with:
registry: git.wilkensxl.de
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
git.wilkensxl.de/mrsphay/dockge-image-update-checker:latest
git.wilkensxl.de/mrsphay/dockge-image-update-checker:${{ github.sha }}

View File

@@ -1,5 +1,10 @@
# Changelog
## Unreleased
- Added Gitea Container Registry publishing for `git.wilkensxl.de/mrsphay/dockge-image-update-checker`.
- Added `compose.dockge.yaml` for Dockge deployment using the registry image.
## 0.1.0
- Initial read-only Dockge companion service.

View File

@@ -44,6 +44,28 @@ GET /api/check?stack=example
## Docker Compose
For Dockge, use the registry-backed compose file from this repository:
```yaml
services:
dockge-image-update-checker:
image: git.wilkensxl.de/mrsphay/dockge-image-update-checker:latest
container_name: dockge-image-update-checker
restart: unless-stopped
ports:
- "8080:8080"
environment:
STACKS_DIR: /opt/stacks
CHECK_INTERVAL_SECONDS: 3600
volumes:
- /opt/stacks:/opt/stacks:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
```
If your Dockge stacks directory is not `/opt/stacks`, change both the host-side volume path and `STACKS_DIR`.
For local development you can still build from source:
```yaml
services:
dockge-image-update-checker:

13
compose.dockge.yaml Normal file
View File

@@ -0,0 +1,13 @@
services:
dockge-image-update-checker:
image: git.wilkensxl.de/mrsphay/dockge-image-update-checker:latest
container_name: dockge-image-update-checker
restart: unless-stopped
ports:
- "8080:8080"
environment:
STACKS_DIR: /opt/stacks
CHECK_INTERVAL_SECONDS: 3600
volumes:
- /opt/stacks:/opt/stacks:ro
- /var/run/docker.sock:/var/run/docker.sock:ro