Archon/.gitea/workflows/build-images.yml
Luis Erlacher 41e26b65cf
All checks were successful
Build Images / build-server (push) Successful in 1m31s
Build Images / build-mcp (push) Successful in 18s
Build Images / build-frontend (push) Successful in 3m57s
Build Images / build-agents (push) Successful in 1m6s
ci: fix checkout issue - add manual git clone
Previous workflow failed because runner had no source code.
Added manual git clone and checkout steps to each job.

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

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

69 lines
2.0 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: Checkout
run: |
git clone https://git.automatizase.com.br/luis.erlacher/Archon.git .
git checkout ${{ github.sha }}
- name: Build and push server
run: |
cd python
docker build -f Dockerfile.server -t ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/server:latest .
docker push ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/server:latest
build-mcp:
runs-on: wsl
steps:
- name: Checkout
run: |
git clone https://git.automatizase.com.br/luis.erlacher/Archon.git .
git checkout ${{ github.sha }}
- name: Build and push mcp
run: |
cd python
docker build -f Dockerfile.mcp -t ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/mcp:latest .
docker push ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/mcp:latest
build-frontend:
runs-on: wsl
steps:
- name: Checkout
run: |
git clone https://git.automatizase.com.br/luis.erlacher/Archon.git .
git checkout ${{ github.sha }}
- name: Build and push frontend
run: |
cd archon-ui-main
docker build -f Dockerfile -t ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/frontend:latest .
docker push ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/frontend:latest
build-agents:
runs-on: wsl
steps:
- name: Checkout
run: |
git clone https://git.automatizase.com.br/luis.erlacher/Archon.git .
git checkout ${{ github.sha }}
- name: Build and push agents
run: |
cd python
docker build -f Dockerfile.agents -t ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/agents:latest .
docker push ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/agents:latest