summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-09-02 23:26:55 +0200
committerKarel Kočí <cynerd@email.cz>2018-09-02 23:26:55 +0200
commit5a2b5ab33e6aa4a8f13aa8790843079ca3bd5d99 (patch)
tree38c72c8d51c3bd9e55b29c971956f4ef16f9cb8a
parent57d88bcfba7b65c6e81ed4d0da8c95d1f428a338 (diff)
downloadlaminar-cnf-5a2b5ab33e6aa4a8f13aa8790843079ca3bd5d99.tar.gz
laminar-cnf-5a2b5ab33e6aa4a8f13aa8790843079ca3bd5d99.tar.bz2
laminar-cnf-5a2b5ab33e6aa4a8f13aa8790843079ca3bd5d99.zip
alpine-amd64: deploy
-rwxr-xr-xjobs/alpine-amd64.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/jobs/alpine-amd64.sh b/jobs/alpine-amd64.sh
index e5a6df3..a529868 100755
--- a/jobs/alpine-amd64.sh
+++ b/jobs/alpine-amd64.sh
@@ -53,3 +53,12 @@ uchroot "$ROOT" root "rm -rf /build/aports && chown -R build:build /aports && mv
echo_stage "Build packages"
uchroot "$ROOT" build buildrepo --purge $(ls "$ROOT/build/aports")
+
+echo_stage "Deploy"
+ssh upload rm -rf "deploy-alpine-amd64"
+scp -r "$ROOT/build/packages" upload:deploy-alpine-amd64
+ssh upload /bin/sh -e <<EOF
+ mkdir -p /var/www/repo/alpine
+ rm -rf /var/www/repo/alpine/amd64
+ mv deploy-alpine-amd64 /var/www/repo/alpine/amd64
+EOF