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:
|
jobs:
|
||||||
deploy:
|
build:
|
||||||
runs-on: home
|
runs-on: home
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Pull repo
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
run: |
|
run: |
|
||||||
cd /mnt/ai/repos/main
|
docker build \
|
||||||
git pull origin main
|
-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