10 lines
375 B
Bash
Executable file
10 lines
375 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
BUILD_HOST=lab.axb
|
|
|
|
# Create a tmp dir on the build machine
|
|
REMOTE_BUILD_PATH=$(ssh $BUILD_HOST -f 'mkdir -p /tmp/databuild && echo /tmp/databuild # mktemp --directory --tmpdir databuild/XXXX')
|
|
rsync -azh --filter=':- .gitignore' --exclude .git ./ $BUILD_HOST:$REMOTE_BUILD_PATH
|
|
|
|
echo "BUILD_HOST=$BUILD_HOST"
|
|
echo "REMOTE_BUILD_PATH=$REMOTE_BUILD_PATH"
|