add gitea workflow
Some checks failed
Docker Build / build (push) Has been cancelled

This commit is contained in:
2026-02-03 23:59:22 +01:00
parent 1268bb5f58
commit 8ee97690db
5 changed files with 52 additions and 12 deletions

View File

@@ -2,6 +2,6 @@
.gitignore .gitignore
.github .github
.gitattributes .gitattributes
.github-lsio .gitea
READMETEMPLATE.md READMETEMPLATE.md
README.md README.md

View File

@@ -0,0 +1,41 @@
name: Docker Build
on:
push:
branches:
- 3.23
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set build metadata
run: |
echo "BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> $GITEA_ENV
echo "VERSION=${GITEA_REF_NAME}" >> $GITEA_ENV
# - name: Build Docker image
# run: |
# docker build \
# --build-arg BUILD_DATE=${BUILD_DATE} \
# --build-arg VERSION=${VERSION} \
# -t docker-baseimage-alpine:${VERSION} .
- name: Login to registry
run: |
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login \
git.pi-farm.de \
-u ${{ secrets.REGISTRY_USER }} \
--password-stdin
- name: Build & push
run: |
docker build \
--build-arg BUILD_DATE=${BUILD_DATE} \
--build-arg VERSION=${VERSION} \
-t git.pi-farm.de/pi-farm/docker-baseimage-alpine:${VERSION} .
docker push git.pi-farm.de/pi-farm/docker-baseimage-alpine:${VERSION}

2
.gitignore vendored
View File

@@ -1,5 +1,3 @@
.github-lsio
# Windows image file caches # Windows image file caches
Thumbs.db Thumbs.db
ehthumbs.db ehthumbs.db

View File

View File

@@ -1,19 +1,20 @@
services: services:
alpine: alpine:
build: # build:
context: . # context: .
dockerfile: Dockerfile # dockerfile: Dockerfile #for x86_64
args: # dockerfile: Dockerfile.aarch64 #for arm64
BUILD_DATE: 2026-02-03 # args:
VERSION: 0.1 # BUILD_DATE: 2026-02-03
image: baseimage-alpine:0.1 # VERSION: 3.23
image: git.pi-farm.de/pi-farm/docker-baseimage-alpine:3.23
container_name: alpine container_name: alpine
environment: environment:
- PUID=1000 - PUID=1000
- PGID=1000 - PGID=1000
- TZ=Europe/Berlin - TZ=Europe/Berlin
volumes: # volumes:
- ./config:/config # - ./config:/config
# ports: # ports:
# -80:80 # -80:80
restart: unless-stopped restart: unless-stopped