diff --git a/.drone-home.jsonnet b/.drone-home.jsonnet index 485319f..2362eda 100644 --- a/.drone-home.jsonnet +++ b/.drone-home.jsonnet @@ -123,6 +123,8 @@ local images = { 'drone_tag', 'drone_commit', 'drone_build_number', + 'drone_repo_name', + 'drone_repo_namespace' ], script: [], }, @@ -220,6 +222,7 @@ local images = { script +: [ 'set -e', 'echo go', + " echo $${{DRONE_GITEA_SERVER}} > thefile", ] /*+ map(export, secrets) + [ @@ -233,7 +236,19 @@ local images = { ] + commands */ } } - ) + ) { + settings +: { + script +: [ + "export DRONE_REPO_LINK=$${{DRONE_GITEA_SERVER}}/$${DRONE_REPO_NAMESPACE}/$${DRONE_REPO_NAME}", + //"export DRONE_COMMIT={commit}".format(commit=ctx.build.commit), + //"docker network prune -f", + //"cd {folder}".format(folder=folder), + //"docker stack rm {name}".format(name = name), + //"sleep 30", + //"docker stack deploy -c {filename} {name}".format(name= name, filename = filename), + ], + }, + }, ], } ]