diff options
-rwxr-xr-x | jobs/alpine-amd64.sh | 9 |
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 |