File tree 3 files changed +11
-8
lines changed
3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ export SUPPORTED_DEB_CODENAMES
18
18
19
19
export SUPPORTED_RPM_ARCHITECTURES=(" x86_64" " aarch64" )
20
20
21
- # Servers to upload Linux deb/rpm repositories to
22
- export DEV_LINUX_REPOSITORY_SERVERS =(" se-got- cdn-001.devmole.eu " " se-got-cdn-002 .devmole.eu" )
23
- export STAGING_LINUX_REPOSITORY_SERVERS =(" se-got- cdn-001.stagemole.eu " " se-got-cdn-002 .stagemole.eu" )
24
- export PRODUCTION_LINUX_REPOSITORY_SERVERS =(" se-got- cdn-111.mullvad.net " " se-mma-cdn-101 .mullvad.net" )
21
+ # Servers to upload Linux deb/rpm repositories and all other build artifacts to.
22
+ export DEV_UPLOAD_SERVERS =(" cdn.devmole.eu" )
23
+ export STAGING_UPLOAD_SERVERS =(" cdn.stagemole.eu" )
24
+ export PRODUCTION_UPLOAD_SERVERS =(" cdn.mullvad.net" )
25
25
26
26
export DEV_LINUX_REPOSITORY_PUBLIC_URL=" https://repository.devmole.eu"
27
27
export STAGING_LINUX_REPOSITORY_PUBLIC_URL=" https://repository.stagemole.eu"
Original file line number Diff line number Diff line change @@ -14,7 +14,10 @@ cd "$UPLOAD_DIR"
14
14
function rsync_upload {
15
15
local file=$1
16
16
local upload_dir=$2
17
- rsync -av --mkpath --rsh=' ssh -p 1122' " $file " " upload-server-1:$upload_dir /"
17
+ for server in " ${PRODUCTION_UPLOAD_SERVERS[@]} " ; do
18
+ echo " Uploading $file to $server :$upload_dir "
19
+ rsync -av --mkpath --rsh=' ssh -p 1122' " $file " " $server :$upload_dir /"
20
+ done
18
21
}
19
22
20
23
while true ; do
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ source "$SCRIPT_DIR/buildserver-config.sh"
14
14
while [ " $# " -gt 0 ]; do
15
15
case " $1 " in
16
16
" --production" )
17
- repository_servers=(" ${PRODUCTION_LINUX_REPOSITORY_SERVERS [@]} " )
17
+ repository_servers=(" ${PRODUCTION_UPLOAD_SERVERS [@]} " )
18
18
repository_server_url=" $PRODUCTION_LINUX_REPOSITORY_PUBLIC_URL "
19
19
;;
20
20
" --staging" )
21
- repository_servers=(" ${STAGING_LINUX_REPOSITORY_SERVERS [@]} " )
21
+ repository_servers=(" ${STAGING_UPLOAD_SERVERS [@]} " )
22
22
repository_server_url=" $STAGING_LINUX_REPOSITORY_PUBLIC_URL "
23
23
;;
24
24
" --dev" )
25
- repository_servers=(" ${DEV_LINUX_REPOSITORY_SERVERS [@]} " )
25
+ repository_servers=(" ${DEV_UPLOAD_SERVERS [@]} " )
26
26
repository_server_url=" $DEV_LINUX_REPOSITORY_PUBLIC_URL "
27
27
;;
28
28
" --deb" )
You can’t perform that action at this time.
0 commit comments