diff --git a/.drone-home.jsonnet b/.drone-home.jsonnet index 86cee52..033e183 100644 --- a/.drone-home.jsonnet +++ b/.drone-home.jsonnet @@ -197,7 +197,7 @@ local images = { util.compose( std.map( function(s) util.envSet(s), - publicSecrets + publicSecrets + secretSecrets ) + std.map( function(s) function(step) step { @@ -211,7 +211,7 @@ local images = { ], }, }, - publicSecrets + publicSecrets + secretSecrets ) ) ( @@ -240,13 +240,13 @@ local images = { ) { settings +: { script +: [ - "export DRONE_REPO_LINK=$${{DRONE_GITEA_SERVER}}/$${DRONE_REPO_NAMESPACE}/$${DRONE_REPO_NAME}", + //"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), + "docker network prune -f", + "cd /stack/portainer", + "docker stack rm portainer", + "sleep 30", + "docker stack deploy -c docker-compose.yml portainer", ], }, },