Some checks failed
Test / rust-fmt-check (pull_request) Failing after 14s
Test / rust-clippy (pull_request) Failing after 16s
Test / rust-tests (pull_request) Failing after 18s
Test / frontend-typecheck (pull_request) Successful in 1m27s
Test / frontend-tests (pull_request) Successful in 1m28s
PR Review Automation / review (pull_request) Successful in 3m4s
Complete sanitization pass to ensure consistency: **1. Repository/Project Name Changes:** - trcaa-devops_investigation → tftsr-devops_investigation (everywhere) - gogs.trcaa.com → gogs.tftsr.com (all URLs) - ollama-ui.trcaa.com → ollama-ui.tftsr.com **2. Internal CI URLs (must use 172.0.0.29):** - gitea.tftsr.com:3000 → 172.0.0.29:3000 in: - AGENTS.md - README.md - docs/architecture/README.md - docs/wiki/*.md - CI runners cannot reach external DNS **3. Code Simplifications:** - MSIGenAI/TFTSRGenAI → GenAI (src-tauri/src/ai/openai.rs) - Cleaner comments without org-specific references **4. Build System Updates:** - Makefile: GH_TOKEN → GOGS_TOKEN, GH_REPO → GOGS_REPO - Commented out GitHub release upload commands - Fixed lib name: tftsr_lib → trcaa_lib (src/main.rs) **5. Documentation Cleanup:** - CLAUDE.md: Fixed wiki URL, Woodpecker→Gitea Actions - Removed PLAN.md, SECURITY_AUDIT.md (not needed in git) - Removed hackathon docs (HACKATHON-*.md) - Removed v1.0.5/7/8 summary docs (superseded) **6. Preserved:** - TRCAA (all caps) = application name (correct!) - trcaa package name in Cargo.toml (correct!) - trcaa_lib library name (correct!) **Test Results:** 308 Rust + 92 frontend tests passing Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
105 lines
3.6 KiB
YAML
105 lines
3.6 KiB
YAML
name: Build CI Docker Images
|
|
|
|
# Rebuilds the pre-baked builder images and pushes them to the local Gitea
|
|
# container registry (172.0.0.29:3000).
|
|
#
|
|
# WHEN TO RUN:
|
|
# - Automatically: whenever a Dockerfile under .docker/ changes on master.
|
|
# - Manually: via workflow_dispatch (e.g. first-time setup, forced rebuild).
|
|
#
|
|
# ONE-TIME SERVER PREREQUISITE (run once on 172.0.0.29 before first use):
|
|
# echo '{"insecure-registries":["172.0.0.29:3000"]}' \
|
|
# | sudo tee /etc/docker/daemon.json
|
|
# sudo systemctl restart docker
|
|
#
|
|
# Images produced:
|
|
# 172.0.0.29:3000/sarman/tftsr-linux-amd64:rust1.88-node22
|
|
# 172.0.0.29:3000/sarman/tftsr-windows-cross:rust1.88-node22
|
|
# 172.0.0.29:3000/sarman/tftsr-linux-arm64:rust1.88-node22
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- '.docker/**'
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: build-ci-images
|
|
cancel-in-progress: false
|
|
|
|
env:
|
|
REGISTRY: 172.0.0.29:3000
|
|
REGISTRY_USER: sarman
|
|
|
|
jobs:
|
|
linux-amd64:
|
|
runs-on: linux-amd64
|
|
container:
|
|
image: alpine:latest
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
apk add --no-cache git docker-cli
|
|
git init
|
|
git remote add origin http://172.0.0.29:3000/sarman/tftsr-devops_investigation.git
|
|
git fetch --depth=1 origin "$GITHUB_SHA"
|
|
git checkout FETCH_HEAD
|
|
- name: Build and push linux-amd64 builder
|
|
env:
|
|
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
run: |
|
|
echo "$RELEASE_TOKEN" | docker login $REGISTRY -u $REGISTRY_USER --password-stdin
|
|
docker build \
|
|
-t $REGISTRY/$REGISTRY_USER/tftsr-linux-amd64:rust1.88-node22 \
|
|
-f .docker/Dockerfile.linux-amd64 .
|
|
docker push $REGISTRY/$REGISTRY_USER/tftsr-linux-amd64:rust1.88-node22
|
|
echo "✓ Pushed $REGISTRY/$REGISTRY_USER/tftsr-linux-amd64:rust1.88-node22"
|
|
|
|
windows-cross:
|
|
runs-on: linux-amd64
|
|
container:
|
|
image: alpine:latest
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
apk add --no-cache git docker-cli
|
|
git init
|
|
git remote add origin http://172.0.0.29:3000/sarman/tftsr-devops_investigation.git
|
|
git fetch --depth=1 origin "$GITHUB_SHA"
|
|
git checkout FETCH_HEAD
|
|
- name: Build and push windows-cross builder
|
|
env:
|
|
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
run: |
|
|
echo "$RELEASE_TOKEN" | docker login $REGISTRY -u $REGISTRY_USER --password-stdin
|
|
docker build \
|
|
-t $REGISTRY/$REGISTRY_USER/tftsr-windows-cross:rust1.88-node22 \
|
|
-f .docker/Dockerfile.windows-cross .
|
|
docker push $REGISTRY/$REGISTRY_USER/tftsr-windows-cross:rust1.88-node22
|
|
echo "✓ Pushed $REGISTRY/$REGISTRY_USER/tftsr-windows-cross:rust1.88-node22"
|
|
|
|
linux-arm64:
|
|
runs-on: linux-amd64
|
|
container:
|
|
image: alpine:latest
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
apk add --no-cache git docker-cli
|
|
git init
|
|
git remote add origin http://172.0.0.29:3000/sarman/tftsr-devops_investigation.git
|
|
git fetch --depth=1 origin "$GITHUB_SHA"
|
|
git checkout FETCH_HEAD
|
|
- name: Build and push linux-arm64 builder
|
|
env:
|
|
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
|
run: |
|
|
echo "$RELEASE_TOKEN" | docker login $REGISTRY -u $REGISTRY_USER --password-stdin
|
|
docker build \
|
|
-t $REGISTRY/$REGISTRY_USER/tftsr-linux-arm64:rust1.88-node22 \
|
|
-f .docker/Dockerfile.linux-arm64 .
|
|
docker push $REGISTRY/$REGISTRY_USER/tftsr-linux-arm64:rust1.88-node22
|
|
echo "✓ Pushed $REGISTRY/$REGISTRY_USER/tftsr-linux-arm64:rust1.88-node22"
|