Archon/.gitea/workflows/build-images.yml
Luis Erlacher eb0748f597
Some checks failed
Build Images / build-server (push) Failing after 1s
Build Images / build-mcp (push) Failing after 1s
Build Images / build-frontend (push) Failing after 1s
Build Images / build-agents (push) Failing after 1s
ci: simplify workflow to work without Node.js dependencies
- Remove complex workflows that required GitHub Actions
- Add simple build-images.yml using pure shell commands
- No external action dependencies (checkout, buildx, build-push-action)
- Direct docker build and push commands
- Works with act_runner without Node.js

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-05 13:12:09 -03:00

85 lines
2.8 KiB
YAML

name: Build Images
on:
push:
branches:
- main
workflow_dispatch:
env:
REGISTRY: git.automatizase.com.br
REGISTRY_PATH: luis.erlacher/archon
jobs:
build-server:
runs-on: wsl
steps:
- name: Build archon-server
run: |
cd python
docker build -f Dockerfile.server \
-t ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/server:latest \
-t ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/server:build-${{ github.run_number }} \
.
echo "✅ Server image built successfully"
- name: Push server image
run: |
docker push ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/server:latest
docker push ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/server:build-${{ github.run_number }}
echo "✅ Server image pushed to registry"
build-mcp:
runs-on: wsl
steps:
- name: Build archon-mcp
run: |
cd python
docker build -f Dockerfile.mcp \
-t ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/mcp:latest \
-t ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/mcp:build-${{ github.run_number }} \
.
echo "✅ MCP image built successfully"
- name: Push mcp image
run: |
docker push ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/mcp:latest
docker push ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/mcp:build-${{ github.run_number }}
echo "✅ MCP image pushed to registry"
build-frontend:
runs-on: wsl
steps:
- name: Build archon-frontend
run: |
cd archon-ui-main
docker build -f Dockerfile \
-t ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/frontend:latest \
-t ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/frontend:build-${{ github.run_number }} \
.
echo "✅ Frontend image built successfully"
- name: Push frontend image
run: |
docker push ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/frontend:latest
docker push ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/frontend:build-${{ github.run_number }}
echo "✅ Frontend image pushed to registry"
build-agents:
runs-on: wsl
steps:
- name: Build archon-agents
run: |
cd python
docker build -f Dockerfile.agents \
-t ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/agents:latest \
-t ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/agents:build-${{ github.run_number }} \
.
echo "✅ Agents image built successfully"
- name: Push agents image
run: |
docker push ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/agents:latest
docker push ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/agents:build-${{ github.run_number }}
echo "✅ Agents image pushed to registry"