Pass env vars through pre-deploy hook
This commit is contained in:
parent
f23935bd1a
commit
64069181d6
@ -59,6 +59,4 @@ env:
|
||||
SSH_LISTEN_PORT: "2222"
|
||||
SSH_PORT: "222"
|
||||
STARTUP_TIMEOUT: "0"
|
||||
USER_GID: "{{ vars.git_user_guid }}"
|
||||
USER_UID: "{{ vars.git_user_uid }}"
|
||||
WHITELIST_URIS: "https://{{ vars.domain }}"
|
||||
|
@ -20,14 +20,14 @@
|
||||
key: git
|
||||
split: ":"
|
||||
|
||||
- name: Store gitea git user uid/guid in config.vars
|
||||
- name: Store gitea git user uid/guid in config.env
|
||||
set_fact:
|
||||
config: "{{
|
||||
config.vars |
|
||||
config.env |
|
||||
default({}) |
|
||||
combine({
|
||||
'git_user_uid': getent_passwd['git'][1],
|
||||
'git_user_guid': getent_passwd['git'][2],
|
||||
'USER_GID': getent_passwd['git'][1],
|
||||
'USER_UID': getent_passwd['git'][2],
|
||||
})
|
||||
}}"
|
||||
|
||||
|
Reference in New Issue
Block a user