ci: version 8 bypass checkout to avoid node dependency
This commit is contained in:
@@ -1,20 +1,25 @@
|
|||||||
name: Deploy-Agent-V7-Absolute
|
name: Deploy-Agent-V8-NoCheckout
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
JOB-V7-ABSOLUTE-FINAL-PATH:
|
JOB-V8-DIRECT-MOUNT:
|
||||||
runs-on: debian-latest
|
runs-on: debian-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Build and Deploy From Host Mount
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: FINAL-DEPLOY-STEP
|
|
||||||
run: |
|
run: |
|
||||||
# VERSION 7 - COMPLETELY HOST-AGNOSTIC
|
# VERSION 8 - DIRECT MOUNT
|
||||||
# We do NOT use 'cd' at all.
|
# We bypass 'actions/checkout' because it requires Node.js inside the runner.
|
||||||
|
# Instead, we use the /memex folder already mounted from the host.
|
||||||
|
|
||||||
|
echo "Syncing latest code from host mount..."
|
||||||
|
cd /memex/projects/org-agent
|
||||||
|
|
||||||
|
# Since the host is using HTTPS/SSH we can't 'git pull' easily inside the runner,
|
||||||
|
# but for the binary build, we just need the files.
|
||||||
|
|
||||||
docker compose -f deploy/docker/docker-compose.yml down
|
docker compose -f deploy/docker/docker-compose.yml down
|
||||||
docker compose -f deploy/docker/docker-compose.yml build --no-cache org-agent
|
docker compose -f deploy/docker/docker-compose.yml build --no-cache org-agent
|
||||||
docker compose -f deploy/docker/docker-compose.yml up -d --force-recreate org-agent
|
docker compose -f deploy/docker/docker-compose.yml up -d --force-recreate org-agent
|
||||||
|
|||||||
Reference in New Issue
Block a user