diff options
Diffstat (limited to 'templates/alpine.run')
-rwxr-xr-x | templates/alpine.run | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/templates/alpine.run b/templates/alpine.run index e21958a..7ebec51 100755 --- a/templates/alpine.run +++ b/templates/alpine.run @@ -68,10 +68,12 @@ uroot cp "$FILES/alpine/abuild.conf" "$ROOT/etc/abuild.conf" uchroot build 'buildrepo --purge --keep-going personal' echo_stage "Deploy" -ssh upload rm -rf "deploy-alpine" -scp -r "$WORKSPACE/packages/personal/$ARCH" upload:"deploy-alpine-$ARCH" -ssh upload /bin/sh -e <<EOF - rm -rf "/var/www/repo/alpine/$ARCH" +sftp -b - upload <<EOF + !rm -rf "deploy-alpine-$ARCH" + put "$WORKSPACE/packages/personal/$ARCH" "deploy-alpine-$ARCH" + !rm -rf "/var/www/repo/alpine/$ARCH" mv "deploy-alpine-$ARCH" "/var/www/repo/alpine/$ARCH" + + put "$FILES"/alpine/setup.sh /var/www/repo/alpine/ + put "$FILES"/alpine/setup.sh.gpg /var/www/repo/alpine/ EOF -scp "$FILES"/alpine/setup.sh{,.gpg} upload:/var/www/repo/alpine/ |