Refactored container ports

This commit is contained in:
Khwezi Mngoma
2026-03-14 12:20:19 +02:00
parent 070bfa4728
commit 1d60730894

View File

@@ -7,16 +7,7 @@ trigger:
exclude:
- promote
# clone:
# disable: true
steps:
# - name: checkout
# image: alpine/git
# commands:
# - git clone https://gitea.khongisa.co.za/khwezi/blazortest.git
# - git checkout ${DRONE_COMMIT}
- name: dotnet build
image: mcr.microsoft.com/dotnet/sdk:10.0
commands:
@@ -51,12 +42,6 @@ clone:
disable: true
steps:
- name: checkout
image: alpine/git
commands:
- git clone https://gitea.khongisa.co.za/khwezi/blazortest.git .
- git checkout ${DRONE_COMMIT}
- name: dotnet publish
image: mcr.microsoft.com/dotnet/sdk:10.0
commands:
@@ -109,4 +94,4 @@ steps:
- 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
- docker run -d --name blazortest --restart unless-stopped -e ASPNETCORE_ENVIRONMENT=Development -p 4001:7007 khwezi/blazortest:latest