fix(deploy): mkdir frontend/public/dl before staging the node binary
ci / gates (push) Successful in 6s
ci / rust (push) Failing after 9s
ci / frontend (push) Successful in 30s
ci / e2e (push) Skipped
ci / publish (push) Skipped

rsync --delete excludes frontend/public/dl/, so the directory does not exist
on the build host and the `cp` of clawmates-node into it aborted the deploy
(set -e) before anything was pushed.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
Omar Sobh
2026-07-28 10:29:04 +02:00
co-authored by Claude Opus 4.8
parent 06ae608d0c
commit 0a647c0bfa
+3
View File
@@ -60,6 +60,9 @@ if [ -z "${IMAGES_ONLY:-}" ]; then
ssh "$BUILD_HOST" 'set -e; cd ~/clawmates ssh "$BUILD_HOST" 'set -e; cd ~/clawmates
export PATH=$HOME/.cargo/bin:$PATH CARGO_NET_GIT_FETCH_WITH_CLI=true SQLX_OFFLINE=true export PATH=$HOME/.cargo/bin:$PATH CARGO_NET_GIT_FETCH_WITH_CLI=true SQLX_OFFLINE=true
cargo build --release -p clawmates-node cargo build --release -p clawmates-node
# rsync excludes frontend/public/dl/ (build artifacts), so the dir may not
# exist on the build host — create it before staging the daemon binary.
mkdir -p frontend/public/dl
cp target/release/clawmates-node frontend/public/dl/clawmates-node-linux-amd64 cp target/release/clawmates-node frontend/public/dl/clawmates-node-linux-amd64
for svc in server frontend; do for svc in server frontend; do
docker build -f images/$svc.Dockerfile -t '"$REGISTRY"'/clawmates/$svc:'"$TAG"' \ docker build -f images/$svc.Dockerfile -t '"$REGISTRY"'/clawmates/$svc:'"$TAG"' \