File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed
roles/domjudge_checkout/tasks Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,10 @@ PHP_MAX_FILE_UPLOADS: 101
37
37
38
38
# Git repo URL
39
39
DJ_GIT_HOST : " {{MAIN_ADMIN_IP}}"
40
- DJ_GIT_REPO : " domjudge@{{DJ_GIT_HOST}}:domjudge"
41
- DJ_GIT_REPO_UPSTREAM : " https://github.com/domjudge/domjudge.git"
42
- DJ_GIT_REPO_SCRIPTS : " domjudge@{{DJ_GIT_HOST}}:domjudge-scripts-bare"
40
+ DJ_GIT_REPO : " https://github.com/domjudge/domjudge.git"
41
+ DJ_GIT_REPO_RESTRICTED : " domjudge@{{DJ_GIT_HOST}}:domjudge"
42
+ DJ_GIT_REPO_SCRIPTS : " https://github.com/domjudge/domjudge-scripts.git"
43
+ DJ_GIT_REPO_SCRIPTS_RESTRICTED : " domjudge@{{DJ_GIT_HOST}}:domjudge-scripts-bare"
43
44
44
45
PHPSTORM_VERSION : 2021.2
45
46
PHPSTORM_FULL_VERSION : 212.5284.49
Original file line number Diff line number Diff line change 8
8
owner : domjudge
9
9
group : domjudge
10
10
11
- - name : create working copy of the domjudge repo
11
+ - name : Update repo URL based on network
12
+ set_fact :
13
+ DJ_GIT_REPO : " {{ DJ_GIT_REPO_RESTRICTED if WF_RESTRICTED_NETWORK else DJ_GIT_REPO}}"
14
+
15
+ - name : Create working copy of the domjudge repo
12
16
become : yes
13
17
become_user : domjudge
14
18
git : repo={{DJ_GIT_REPO}} dest={{DJ_DIR}} version={{DJ_BRANCH}} accept_hostkey=yes update=yes
15
19
register : git_working_copy
16
20
when : WF_RESTRICTED_NETWORK
17
21
18
- - name : create working copy of the domjudge repo
19
- become : yes
20
- become_user : domjudge
21
- git : repo={{DJ_GIT_REPO_UPSTREAM}} dest={{DJ_DIR}} version={{DJ_BRANCH}} accept_hostkey=yes update=yes
22
- register : git_working_copy
23
- when : WF_RESTRICTED_NETWORK != true
24
-
25
22
- name : Check composer dependencies present
26
23
become : no
27
24
local_action : stat path=files/lib/vendor
You can’t perform that action at this time.
0 commit comments