Refactored container ports
This commit is contained in:
17
.drone.yml
17
.drone.yml
@@ -7,16 +7,7 @@ trigger:
|
|||||||
exclude:
|
exclude:
|
||||||
- promote
|
- promote
|
||||||
|
|
||||||
# clone:
|
|
||||||
# disable: true
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - name: checkout
|
|
||||||
# image: alpine/git
|
|
||||||
# commands:
|
|
||||||
# - git clone https://gitea.khongisa.co.za/khwezi/blazortest.git
|
|
||||||
# - git checkout ${DRONE_COMMIT}
|
|
||||||
|
|
||||||
- name: dotnet build
|
- name: dotnet build
|
||||||
image: mcr.microsoft.com/dotnet/sdk:10.0
|
image: mcr.microsoft.com/dotnet/sdk:10.0
|
||||||
commands:
|
commands:
|
||||||
@@ -51,12 +42,6 @@ clone:
|
|||||||
disable: true
|
disable: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
|
||||||
image: alpine/git
|
|
||||||
commands:
|
|
||||||
- git clone https://gitea.khongisa.co.za/khwezi/blazortest.git .
|
|
||||||
- git checkout ${DRONE_COMMIT}
|
|
||||||
|
|
||||||
- name: dotnet publish
|
- name: dotnet publish
|
||||||
image: mcr.microsoft.com/dotnet/sdk:10.0
|
image: mcr.microsoft.com/dotnet/sdk:10.0
|
||||||
commands:
|
commands:
|
||||||
@@ -109,4 +94,4 @@ steps:
|
|||||||
- docker pull khwezi/blazortest:latest
|
- docker pull khwezi/blazortest:latest
|
||||||
- docker stop blazortest 2>NUL || echo "Container not running"
|
- docker stop blazortest 2>NUL || echo "Container not running"
|
||||||
- docker rm blazortest 2>NUL || echo "Container not found"
|
- 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
|
||||||
|
|||||||
Reference in New Issue
Block a user