From f8f2fa04f44a97215c8aed2915897568aacdce12 Mon Sep 17 00:00:00 2001 From: TimHoogervorst Date: Sun, 10 May 2026 15:05:42 +0200 Subject: [PATCH] Refactor deployment workflow to build and push Docker image for Agent API --- .gitea/workflows/deploy-agent.yaml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy-agent.yaml b/.gitea/workflows/deploy-agent.yaml index 90475fb..1387d28 100644 --- a/.gitea/workflows/deploy-agent.yaml +++ b/.gitea/workflows/deploy-agent.yaml @@ -1,9 +1,24 @@ +name: Build and Push Agent API + +on: + push: + branches: + - main + jobs: - deploy: + build: runs-on: home steps: - - name: Pull repo + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Build Docker image run: | - cd /mnt/ai/repos/main - git pull origin main \ No newline at end of file + docker build \ + -t 192.168.1.185:5010/agents-api:latest \ + -f docker/Dockerfile . + + - name: Push image to registry + run: | + docker push 192.168.1.185:5010/agents-api:latest \ No newline at end of file