Merge pull request 'Fixed docker config path error' (#78) from test into main
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/promote/prod Build is failing

Reviewed-on: #78
This commit was merged in pull request #78.
This commit is contained in:
2026-03-14 11:13:51 +02:00

View File

@@ -134,12 +134,12 @@ steps:
settings: settings:
settings: settings:
script: script:
- powershell -Command "if (!(Test-Path 'C:\Users\drone\docker-config')) { New-Item -Path 'C:\Users\drone\docker-config' -ItemType Directory }" - powershell -Command "if (!(Test-Path 'C:\Users\drone\.docker')) { New-Item -Path 'C:\Users\drone\.docker' -ItemType Directory }"
- powershell -Command "Set-Content -Path 'C:\Users\drone\docker-config\config.json' -Value '{\"credsStore\": \"\"}'" - powershell -Command "Set-Content -Path 'C:\Users\drone\.docker\config.json' -Value '{\"credsStore\": \"\"}'"
- powershell -Command "docker --config C:\Temp\docker-config pull khwezi/webapitest:latest" - powershell -Command "docker --config C:\Users\drone\.docker pull khwezi/webapitest:latest"
- powershell -Command "docker --config C:\Temp\docker-config stop webapi; exit 0" - powershell -Command "docker --config C:\Users\drone\.docker stop webapi; exit 0"
- powershell -Command "docker --config C:\Temp\docker-config rm webapi; exit 0" - powershell -Command "docker --config C:\Users\drone\.docker rm webapi; exit 0"
- powershell -Command "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 "docker --config C:\Users\drone\.docker run -d --name webapi --restart unless-stopped -e ASPNETCORE_ENVIRONMENT=Production -p 4001:8081 khwezi/webapitest:latest"
when: when:
event: event:
- promote - promote