Refactor deployment workflow to build and push Docker image for Agent API
Build and Push Agent API / build (push) Failing after 1s
Build and Push Agent API / build (push) Failing after 1s
This commit is contained in:
@@ -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
|
||||
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
|
||||
Reference in New Issue
Block a user