fix: stream deploy sources into host workspace
Deploy / Deploy Staging (push) Failing after 39s
Deploy / Deploy Production (push) Has been skipped
Tests / lint (push) Has been cancelled
Tests / test (push) Has been cancelled

This commit is contained in:
Xiaoxia AI
2026-06-15 20:20:03 +08:00
parent b47cfa549d
commit 33fb16a75a
+4 -8
View File
@@ -33,17 +33,15 @@ jobs:
shell: bash
run: |
set -euo pipefail
docker run --rm \
tar --exclude=.git -cf - . | docker run --rm -i \
-v /:/host \
-v "$PWD":/workspace-src \
alpine:3.20 \
sh -lc '
set -eu
mkdir -p /host/var/lib/xiaoxia-saas-staging
rm -rf /host/var/lib/xiaoxia-saas-staging/repo
mkdir -p /host/var/lib/xiaoxia-saas-staging/repo
cd /workspace-src
tar --exclude=.git -cf - . | tar -xf - -C /host/var/lib/xiaoxia-saas-staging/repo
tar -xf - -C /host/var/lib/xiaoxia-saas-staging/repo
'
- name: Verify staging env file
@@ -123,17 +121,15 @@ jobs:
shell: bash
run: |
set -euo pipefail
docker run --rm \
tar --exclude=.git -cf - . | docker run --rm -i \
-v /:/host \
-v "$PWD":/workspace-src \
alpine:3.20 \
sh -lc '
set -eu
mkdir -p /host/var/lib/xiaoxia-saas-production
rm -rf /host/var/lib/xiaoxia-saas-production/repo
mkdir -p /host/var/lib/xiaoxia-saas-production/repo
cd /workspace-src
tar --exclude=.git -cf - . | tar -xf - -C /host/var/lib/xiaoxia-saas-production/repo
tar -xf - -C /host/var/lib/xiaoxia-saas-production/repo
'
- name: Verify production env file