- 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.
59 lines
1.4 KiB
Markdown
59 lines
1.4 KiB
Markdown
# START HERE
|
|
|
|
🚨🚨🚨🚨 ***PRINCIPLE RULES ALWAYS FIRST*** 🚨🚨🚨🚨
|
|
|
|
## What Happened Last Session
|
|
|
|
**Last Session** (2026-01-09 21:48):
|
|
- Fixed CI workflow in `oh-my-opencode-free` project
|
|
- Changed trigger from `master` → `main` to enable `:latest` tag
|
|
- Build successful: `git.app.flexinit.nl/oussamadouhou/oh-my-opencode-free:latest`
|
|
- Commit: `bdfa5c1`
|
|
|
|
## Current Task
|
|
|
|
**Build is successful** - Now need to:
|
|
1. ✅ Create `.gitea/workflows/docker-publish.yaml` for THIS project
|
|
2. ✅ Initialize git repo
|
|
3. 🔧 Create repository on Gitea: https://git.app.flexinit.nl (repo: ai-stack-deployer)
|
|
4. Push to trigger build and enable `:latest` tag
|
|
|
|
## Quick Reference
|
|
|
|
**Working Workflow**: `/home/odouhou/locale-projects/oh-my-opencode-free/.gitea/workflows/docker-publish.yaml`
|
|
|
|
**Key Config**:
|
|
- Triggers on `main` branch (not master)
|
|
- Registry: `git.app.flexinit.nl`
|
|
- Auth: `oussamadouhou` + `REGISTRY_TOKEN` secret
|
|
- Tags: `:latest` + `:<sha>`
|
|
|
|
## DOCUMENTATION
|
|
|
|
**Git Repository**:
|
|
```bash
|
|
# 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**:
|
|
```bash
|
|
STACK_IMAGE=git.app.flexinit.nl/oussamadouhou/oh-my-opencode-free:latest
|
|
DOKPLOY_URL=https://app.flexinit.nl
|
|
```
|
|
|
|
## Commands
|
|
|
|
```bash
|
|
# Dev server
|
|
bun run dev
|
|
|
|
# Docker
|
|
docker-compose up -d
|
|
```
|
|
|
|
See `CLAUDE.md` for full documentation.
|