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
.github
.gitattributes
.github-lsio
.gitea
READMETEMPLATE.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
Thumbs.db
ehthumbs.db

View File

View File

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