Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is a sample build configuration for .NET Core.
- # Check our guides at https://confluence.atlassian.com/x/5Q4SMw for more examples.
- # Only use spaces to indent your .yml configuration.
- # -----
- # You can specify a custom docker image from Docker Hub as your build environment.
- image: microsoft/dotnet:sdk
- pipelines:
- branches:
- development:
- - step:
- name: Build AspNetCore project
- caches:
- - dotnetcore
- script: # Modify the comma`nds below to build your repository.
- - export PROJECT_NAME=TaskSpurAPIv1
- - set ASPNETCORE_ENVIRONMENT=Development
- - apt-get update
- - apt-get install ncftp
- - dotnet restore
- - dotnet build $PROJECT_NAME
- - dotnet publish --output publish --configuration release
- - cd $PROJECT_NAME
- - dotnet ef database update -c TaskSpurApiDbContext
- - cd publish
- - ncftpput -v -u "username" -p "password" -R ftp.api-dev.taskspur.com /bbpipeline_notouch/api-dev.taskspur.com/wwwroot *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement