fix(deploy): mkdir frontend/public/dl before staging the node binary
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:
co-authored by
Claude Opus 4.8
parent
06ae608d0c
commit
0a647c0bfa
@@ -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"' \
|
||||||
|
|||||||
Reference in New Issue
Block a user