add Docker and CI/CD pipeline with ledo
Some checks failed
Docker - build image / 🏗️ Docker builder (latest from master) 🏗️ (push) Failing after 17s

Configure Next.js static export with nginx serving, Dockerfile
(multi-stage build), docker-compose for prod/dev, Gitea Actions
pipelines for build-on-push and tag-based releases using ledo tool.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-15 23:49:15 +01:00
parent afb939f629
commit 3438f8d405
11 changed files with 252 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
name: Docker - build image
run-name: ${{ gitea.actor }} builds image for project 🏗️
on:
push:
branches:
- "main"
jobs:
builder:
name: 🏗️ Docker builder (latest from master) 🏗️
runs-on: dind
steps:
- name: "[docker] registry login"
uses: docker/login-action@v2
with:
registry: git.cynarski.pl
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: "[code] repository checkout"
uses: actions/checkout@v3
with:
submodules: recursive
- name: "[ledo] Image build"
run: ledo image build
- name: "[ledo] Image push"
run: ledo image push
- name: "[docker] system prune"
run: docker system prune -af --volumes

View File

@@ -0,0 +1,35 @@
name: Docker - build image
run-name: ${{ gitea.actor }} builds docker image for project 🏗️
on:
push:
tags:
- "v*"
jobs:
builder:
name: 🏗️ Docker builder release tag 🏗️
runs-on: dind
steps:
- name: "[docker] registry login"
uses: docker/login-action@v2
with:
registry: git.cynarski.pl
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: "[code] repository checkout"
uses: actions/checkout@v3
with:
submodules: recursive
- name: checkout submodule
run: |
git submodule init
git submodule update
- name: "[ledo] Image build"
run: |
ledo image build
- name: "[ledo] Image retag and push"
run: |
export VERSION=$(echo $GITHUB_REF | cut -d '/' -f 3)
ledo image retag latest $VERSION
ledo image push $VERSION
- name: "[docker] system prune"
run: docker system prune -af --volumes