CI: woodpecker #57

Closed
kunsi wants to merge 11 commits from kunsi-woodpecker into main
Showing only changes of commit cb4d28c994 - Show all commits

View file

@ -2,7 +2,7 @@
'woodpecker-agent/environment', 'woodpecker-agent/environment',
'woodpecker-agent/version', 'woodpecker-agent/version',
) )
def nginx(metadata): def environment(metadata):
env = {} env = {}
server = repo.get_node(metadata.get('woodpecker-agent/server')) server = repo.get_node(metadata.get('woodpecker-agent/server'))
@ -16,6 +16,8 @@ def nginx(metadata):
env['WOODPECKER_HOSTNAME'] = metadata.get('hostname') env['WOODPECKER_HOSTNAME'] = metadata.get('hostname')
env['WOODPECKER_LOG_LEVEL'] = server.metadata.get('woodpecker-server/environment/WOODPECKER_LOG_LEVEL')
debug = server.metadata.get('woodpecker-server/environment/GODEBUG', None) debug = server.metadata.get('woodpecker-server/environment/GODEBUG', None)
if debug: if debug:
env['GODEBUG'] = debug env['GODEBUG'] = debug