diff --git a/.drone.yml b/.drone.yml index 30b600f..71ef1a6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,7 @@ steps: - name: checkout image: alpine/git commands: - - git clone https://gitea.khongisa.co.za/MngomaLab/webapitest.git . + - git clone https://gitea.khongisa.co.za/khwezi/blazortest.git - git checkout ${DRONE_COMMIT} - name: dotnet build @@ -54,7 +54,7 @@ steps: - name: checkout image: alpine/git commands: - - git clone https://gitea.khongisa.co.za/MngomaLab/webapitest.git . + - git clone https://gitea.khongisa.co.za/khwezi/blazortest.git . - git checkout ${DRONE_COMMIT} - name: dotnet publish @@ -74,13 +74,13 @@ steps: --verbosity=debug --context=. --dockerfile=Dockerfile - --destination=index.docker.io/khwezi/webapitest:latest - --destination=index.docker.io/khwezi/webapitest:${DRONE_BUILD_NUMBER} + --destination=index.docker.io/khwezi/blazortest:latest + --destination=index.docker.io/khwezi/blazortest:${DRONE_BUILD_NUMBER} - name: volnerability scan image: aquasec/trivy commands: - - trivy image --exit-code 1 --timeout 15m --severity CRITICAL khwezi/webapitest:${DRONE_BUILD_NUMBER} + - trivy image --exit-code 1 --timeout 15m --severity CRITICAL khwezi/blazortest:${DRONE_BUILD_NUMBER} --- kind: pipeline type: docker @@ -106,7 +106,7 @@ steps: password: from_secret: ssh_password 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=Development -p 4000:8081 khwezi/webapitest:latest + - docker pull khwezi/blazortest:latest + - docker stop blazortest 2>NUL || echo "Container not running" + - docker rm blazortest 2>NUL || echo "Container not found" + - docker run -d --name blazortest --restart unless-stopped -e ASPNETCORE_ENVIRONMENT=Development -p 4000:8081 khwezi/blazortest:latest