- Add .gitea/workflows/docker-publish.yaml for automated builds - Configure workflow to trigger on main branch - Update README.md with deployment instructions - Update START-HERE.md with session context This enables automatic Docker image builds tagged as :latest and :<sha> when pushing to main branch.
1.4 KiB
1.4 KiB
START HERE
🚨🚨🚨🚨 PRINCIPLE RULES ALWAYS FIRST 🚨🚨🚨🚨
What Happened Last Session
Last Session (2026-01-09 21:48):
- Fixed CI workflow in
oh-my-opencode-freeproject - Changed trigger from
master→mainto enable:latesttag - Build successful:
git.app.flexinit.nl/oussamadouhou/oh-my-opencode-free:latest - Commit:
bdfa5c1
Current Task
Build is successful - Now need to:
- ✅ Create
.gitea/workflows/docker-publish.yamlfor THIS project - ✅ Initialize git repo
- 🔧 Create repository on Gitea: https://git.app.flexinit.nl (repo: ai-stack-deployer)
- Push to trigger build and enable
:latesttag
Quick Reference
Working Workflow: /home/odouhou/locale-projects/oh-my-opencode-free/.gitea/workflows/docker-publish.yaml
Key Config:
- Triggers on
mainbranch (not master) - Registry:
git.app.flexinit.nl - Auth:
oussamadouhou+REGISTRY_TOKENsecret - Tags:
:latest+:<sha>
DOCUMENTATION
Git Repository:
# Remote URL pattern
ssh://git@git.app.flexinit.nl:22222/oussamadouhou/{repo-name}.git
# This project
origin: ssh://git@git.app.flexinit.nl:22222/oussamadouhou/ai-stack-deployer.git
Environment:
STACK_IMAGE=git.app.flexinit.nl/oussamadouhou/oh-my-opencode-free:latest
DOKPLOY_URL=https://app.flexinit.nl
Commands
# Dev server
bun run dev
# Docker
docker-compose up -d
See CLAUDE.md for full documentation.