mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 09:00:26 +00:00
Update pre.yml
This commit is contained in:
parent
1c10e7f35a
commit
cc84fd3c4b
1 changed files with 5 additions and 3 deletions
|
@ -4,15 +4,17 @@
|
|||
0: Gitlabce
|
||||
1: Gitlabee
|
||||
2: Gitlab with Jenkins
|
||||
3: 极狐中文
|
||||
private: no
|
||||
Default:0
|
||||
register: gitlab_version_options
|
||||
|
||||
- set_fact:
|
||||
gitlab_version_meta:
|
||||
"0": "ce"
|
||||
"1": "ee"
|
||||
"0": "CE"
|
||||
"1": "EE"
|
||||
"2": "jenkins"
|
||||
"3": "JH"
|
||||
|
||||
- set_fact:
|
||||
gitlab_version: "{{gitlab_version_meta[gitlab_version_options.user_input]}}"
|
||||
|
@ -22,5 +24,5 @@
|
|||
|
||||
- name: Config .env for start containers
|
||||
shell: |
|
||||
sed -i 's/APP_EDITION=.*/APP_EDITION={{gitlab_version}}/g' {{installpath}}/{{appname}}/.env
|
||||
sed -i 's/\$APP_CE_IMAGEURL/\$APP_{{gitlab_version}}_IMAGEURL/g' {{installpath}}/{{appname}}/.env
|
||||
when: gitlab_version != "jenkins"
|
||||
|
|
Loading…
Reference in a new issue