Remove old build steps
This commit is contained in:
parent
f42e6a750e
commit
74c2001111
1 changed files with 0 additions and 32 deletions
32
.drone.yml
32
.drone.yml
|
@ -16,38 +16,6 @@ steps:
|
|||
repo: docker.robware.uk/api/blog
|
||||
registry: docker.robware.uk
|
||||
tags: latest
|
||||
- name: build and publish
|
||||
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
||||
volumes:
|
||||
- name: output
|
||||
path: /output
|
||||
environment:
|
||||
ConnectionString:
|
||||
from_secret: ConnectionString
|
||||
AuthEndpoint:
|
||||
from_secret: AuthEndpoint
|
||||
AuthApiKey:
|
||||
from_secret: AuthApiKey
|
||||
commands:
|
||||
- chmod +x ./build.sh
|
||||
- ./build.sh
|
||||
- sed -i "s/<DatabaseConnectionString>/$ConnectionString/g" output/appsettings.json
|
||||
- sed -i "s/<AuthEndpoint>/$AuthEndpoint/g" output/appsettings.json
|
||||
- sed -i "s/<AuthApiKey>/$AuthApiKey/g" output/appsettings.json
|
||||
- cp api.blog.service output/
|
||||
- cp -r ./output/* /output
|
||||
- name: restart service
|
||||
privileged: true
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host: 192.168.1.3
|
||||
username:
|
||||
from_secret: ssh_user
|
||||
password:
|
||||
from_secret: ssh_password
|
||||
script:
|
||||
- systemctl daemon-reload
|
||||
- service api.blog restart
|
||||
- name: notify
|
||||
image: drillster/drone-email
|
||||
settings:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue