diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-05-14 12:12:04 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-05-14 12:12:04 +0200 |
commit | 1ebd7c36926a85512f417d6619b09f91dda93687 (patch) | |
tree | 4c95160ab0d7f666b232a5f960ae9348228d0610 | |
parent | ae000dc1cbf63b881eaa3ccaeb8762c537910a4f (diff) | |
download | www-1ebd7c36926a85512f417d6619b09f91dda93687.tar.gz www-1ebd7c36926a85512f417d6619b09f91dda93687.zip |
add deploy script
-rwxr-xr-x | .buildbot/firefly-x86_64-amdepyc_deploy.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.buildbot/firefly-x86_64-amdepyc_deploy.sh b/.buildbot/firefly-x86_64-amdepyc_deploy.sh new file mode 100755 index 00000000..baad1bae --- /dev/null +++ b/.buildbot/firefly-x86_64-amdepyc_deploy.sh | |||
@@ -0,0 +1,10 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # Deploy websites from buildbot | ||
4 | |||
5 | chmod -R ag+rX rendered/ | ||
6 | DEPLOY_USER="stage" | ||
7 | if [ $(git rev-parse --abbrev-ref HEAD) == 'stable' ]; then | ||
8 | DEPLOY_USER="www" | ||
9 | fi | ||
10 | rsync -a --delete rendered/ $DEPLOY_USER@gnunet.org:~/www_deployment/ | ||