1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/woodpecker_ynh.git synced 2024-09-03 20:35:57 +02:00
woodpecker_ynh/scripts/_common.sh

31 lines
957 B
Bash
Raw Normal View History

2023-10-01 14:04:36 +02:00
#!/bin/bash
#=================================================
# COMMON VARIABLES
#=================================================
#=================================================
# PERSONAL HELPERS
#=================================================
2023-10-02 13:41:27 +02:00
_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
}
2023-10-01 14:04:36 +02:00
#=================================================
# EXPERIMENTAL HELPERS
#=================================================
#=================================================
# FUTURE OFFICIAL HELPERS
#=================================================