From 1917a60867f099e037f00c6b4f0211f31a018873 Mon Sep 17 00:00:00 2001 From: khwezi Date: Sat, 14 Mar 2026 10:50:01 +0200 Subject: [PATCH] Added measures to ignore docker credential store --- .drone.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5c77191..abf545e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -133,10 +133,17 @@ steps: from_secret: ssh_prod_host settings: script: - - docker pull khwezi/webapitest:latest - - docker stop webapi 2>NUL || echo "Container not running" - - docker rm webapi 2>NUL || echo "Container not found" - - docker run -d --name webapi --restart unless-stopped -e ASPNETCORE_ENVIRONMENT=Production -p 4001:8081 khwezi/webapitest:latest + # 1. Create a directory for a temporary docker config + - mkdir -p C:\Temp\docker-config + + # 2. Force Docker to use an empty (no-op) credential store + - echo '{"credsStore": ""}' > C:\Temp\docker-config\config.json + + # 3. Run all docker commands pointing to this config + - 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 when: event: - promote -- 2.47.3