summaryrefslogtreecommitdiff
path: root/templates/alpine.run
diff options
context:
space:
mode:
Diffstat (limited to 'templates/alpine.run')
-rwxr-xr-xtemplates/alpine.run12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/alpine.run b/templates/alpine.run
index 7f35cb7..a65fb84 100755
--- a/templates/alpine.run
+++ b/templates/alpine.run
@@ -68,10 +68,10 @@ uroot cp "$FILES/alpine/abuild.conf" "$ROOT/etc/abuild.conf"
uchroot build 'buildrepo --purge --keep-going personal'
echo_stage "Deploy"
-sftp -b - upload:/var/www/repo <<EOF
- !mkdir -p alpine
- !rm -rf "alpine/$ARCH"
- put -R "$WORKSPACE/packages/personal/$ARCH" "alpine/$ARCH"
- put "$FILES"/alpine/setup.sh alpine/
- put "$FILES"/alpine/setup.sh.gpg alpine/
+ssh upload rm -rf "deploy-alpine"
+sftp -r "$WORKSPACE/packages/personal/$ARCH" upload:"deploy-alpine-$ARCH"
+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/