Pass env vars through pre-deploy hook
This commit is contained in:
@ -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