mirror of
https://github.com/YunoHost-Apps/woodpecker_ynh.git
synced 2024-09-03 20:35:57 +02:00
30 lines
957 B
Bash
30 lines
957 B
Bash
#!/bin/bash
|
|
|
|
#=================================================
|
|
# COMMON VARIABLES
|
|
#=================================================
|
|
|
|
#=================================================
|
|
# PERSONAL HELPERS
|
|
#=================================================
|
|
|
|
_woodpecker_set_forge_config() {
|
|
FORGE=$(printf '%s\n' "$forge_type" | awk '{ print toupper($0) }')
|
|
config_forge_type="WOODPECKER_${FORGE}=true"
|
|
config_forge_client="WOODPECKER_${FORGE}_CLIENT=$forge_client"
|
|
config_forge_secret="WOODPECKER_${FORGE}_SECRET=$forge_secret"
|
|
|
|
if [[ -n "$forge_url" ]]; then
|
|
config_forge_url="WOODPECKER_${FORGE}_URL=$forge_url"
|
|
else
|
|
config_forge_url="# no forge url"
|
|
fi
|
|
}
|
|
|
|
#=================================================
|
|
# EXPERIMENTAL HELPERS
|
|
#=================================================
|
|
|
|
#=================================================
|
|
# FUTURE OFFICIAL HELPERS
|
|
#=================================================
|