Skip to content

Commit 1835a47

Browse files
vmcjnickygerritsen
authored andcommitted
Allow bare repo and upstream usage
There is a correlation between the restricted network and dedicated git repo this makes this very explicit.
1 parent bcf6b6d commit 1835a47

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

icpc-wf/ansible/group_vars/all/all.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ PHP_MAX_FILE_UPLOADS: 101
3838
# Git repo URL
3939
DJ_GIT_HOST: "{{MAIN_ADMIN_IP}}"
4040
DJ_GIT_REPO: "domjudge@{{DJ_GIT_HOST}}:domjudge"
41+
DJ_GIT_REPO_UPSTREAM: "https://github.com/domjudge/domjudge.git"
4142
DJ_GIT_REPO_SCRIPTS: "domjudge@{{DJ_GIT_HOST}}:domjudge-scripts-bare"
4243

4344
PHPSTORM_VERSION: 2021.2

icpc-wf/ansible/roles/domjudge_checkout/tasks/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
become_user: domjudge
1414
git: repo={{DJ_GIT_REPO}} dest={{DJ_DIR}} version={{DJ_BRANCH}} accept_hostkey=yes update=yes
1515
register: git_working_copy
16+
when: WF_RESTRICTED_NETWORK
17+
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
1624

1725
- name: Check composer dependencies present
1826
become: no

0 commit comments

Comments
 (0)