From 4c86a810da2ab08c1f833a8d119b25ef8eed2449 Mon Sep 17 00:00:00 2001 From: khwezi Date: Sat, 14 Mar 2026 11:07:00 +0200 Subject: [PATCH] fixed temp directory naming --- .drone.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2425cdc..4a6f165 100644 --- a/.drone.yml +++ b/.drone.yml @@ -134,15 +134,8 @@ steps: settings: settings: script: - # - mkdir -p C:\Temp\docker-config - # - | - # echo "{\"credsStore\": \"\"}" > C:\Temp\docker-config\config.json - # - docker --config C:\Temp\docker-config pull khwezi/webapitest:latest - # - docker --config C:\Temp\docker-config stop webapi 2>NUL || echo "Container not running" - # - docker --config C:\Temp\docker-config rm webapi 2>NUL || echo "Container not found" - # - docker --config C:\Temp\docker-config run -d --name webapi --restart unless-stopped -e ASPNETCORE_ENVIRONMENT=Production -p 4001:8081 khwezi/webapitest:latest - - powershell -Command "if (!(Test-Path 'C:\Temp\docker-config')) { New-Item -Path 'C:\Temp\docker-config' -ItemType Directory }" - - powershell -Command "Set-Content -Path 'C:\Temp\docker-config\config.json' -Value '{\"credsStore\": \"\"}'" + - powershell -Command "if (!(Test-Path 'C:\Users\drone\docker-config')) { New-Item -Path 'C:\Users\drone\docker-config' -ItemType Directory }" + - powershell -Command "Set-Content -Path 'C:\Users\drone\docker-config\config.json' -Value '{\"credsStore\": \"\"}'" - powershell -Command "docker --config C:\Temp\docker-config pull khwezi/webapitest:latest" - powershell -Command "docker --config C:\Temp\docker-config stop webapi; exit 0" - powershell -Command "docker --config C:\Temp\docker-config rm webapi; exit 0"