This commit is contained in:
18
.drone.yml
18
.drone.yml
@@ -4,13 +4,10 @@ name: default
|
||||
|
||||
steps:
|
||||
- name: build-dotnet
|
||||
image: mcr.microsoft.com/dotnet/sdk:6.0
|
||||
environment:
|
||||
LANG: en_US.UTF-8
|
||||
LC_ALL: en_US.UTF-8
|
||||
DOTNET_CLI_UI_LANGUAGE: en-US
|
||||
image: alpine
|
||||
commands:
|
||||
- dotnet publish Aberwyn/Aberwyn.csproj -c Release -o out
|
||||
- echo "Docker build will handle dotnet publish"
|
||||
|
||||
|
||||
- name: build-docker
|
||||
image: plugins/docker
|
||||
@@ -40,7 +37,14 @@ steps:
|
||||
- docker pull 192.168.1.9:3000/tai/aberwyn/aberwyn:latest
|
||||
- docker stop Aberwyn || true
|
||||
- docker rm Aberwyn || true
|
||||
- docker run -d --name='Aberwyn' --net='br0' -e TZ='Europe/Berlin' -p 80:80 192.168.1.9:3000/tai/aberwyn/aberwyn:latest
|
||||
- docker volume create aberwyn_config || true
|
||||
- docker run -d \
|
||||
--name='Aberwyn' \
|
||||
--net='br0' \
|
||||
-e TZ='Europe/Berlin' \
|
||||
-p 80:80 \
|
||||
-v aberwyn_config:/app/infrastructure \
|
||||
192.168.1.9:3000/tai/aberwyn/aberwyn:latest
|
||||
|
||||
- name: notify-result
|
||||
image: alpine
|
||||
|
||||
Reference in New Issue
Block a user