Put in email notifications
This commit is contained in:
parent
12791ea8dc
commit
cb1c47c44e
1 changed files with 8 additions and 1 deletions
|
@ -9,6 +9,14 @@ volumes:
|
||||||
host:
|
host:
|
||||||
path: /var/www/Website
|
path: /var/www/Website
|
||||||
|
|
||||||
|
pipeline:
|
||||||
|
notify:
|
||||||
|
image: drillster/drone-email
|
||||||
|
host: 192.168.1.3
|
||||||
|
from: build@robware.uk
|
||||||
|
when:
|
||||||
|
status: [ changed, failure ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build and publish
|
- name: build and publish
|
||||||
image: mcr.microsoft.com/dotnet/core/sdk:2.2
|
image: mcr.microsoft.com/dotnet/core/sdk:2.2
|
||||||
|
@ -25,7 +33,6 @@ steps:
|
||||||
- ./build.sh
|
- ./build.sh
|
||||||
- sed -i "s/<DatabaseConnectionString>/$ConnectionString/g" output/appsettings.json
|
- sed -i "s/<DatabaseConnectionString>/$ConnectionString/g" output/appsettings.json
|
||||||
- cp Infrastructure/website.service output/
|
- cp Infrastructure/website.service output/
|
||||||
-
|
|
||||||
- cp -r ./output/* /output
|
- cp -r ./output/* /output
|
||||||
- name: restart service
|
- name: restart service
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue