summaryrefslogtreecommitdiff
path: root/templates/alpine.run
diff options
context:
space:
mode:
Diffstat (limited to 'templates/alpine.run')
-rwxr-xr-xtemplates/alpine.run9
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/alpine.run b/templates/alpine.run
index a65fb84..2132576 100755
--- a/templates/alpine.run
+++ b/templates/alpine.run
@@ -69,9 +69,14 @@ uchroot build 'buildrepo --purge --keep-going personal'
echo_stage "Deploy"
ssh upload rm -rf "deploy-alpine"
-sftp -r "$WORKSPACE/packages/personal/$ARCH" upload:"deploy-alpine-$ARCH"
+sftp -b - upload <<EOF
+ put -R "$WORKSPACE/packages/personal/$ARCH" "deploy-alpine-$ARCH"
+EOF
ssh upload /bin/sh -e "$ARCH" <<"EOF"
rm -rf "/var/www/repo/alpine/$1"
mv "deploy-alpine-$1" "/var/www/repo/alpine/$1"
EOF
-sftp "$FILES"/alpine/setup.sh{,.gpg} upload:/var/www/repo/alpine/
+sftp -b - upload:/var/www/repo/alpine/ <<EOF
+ put "$FILES"/alpine/setup.sh"
+ put "$FILES"/alpine/setup.sh.gpg"
+EOF