Advertisement
hubert17

Untitled

Apr 18th, 2019
2,952
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # This is a sample build configuration for .NET Core.
  2. # Check our guides at https://confluence.atlassian.com/x/5Q4SMw for more examples.
  3. # Only use spaces to indent your .yml configuration.
  4. # -----
  5. # You can specify a custom docker image from Docker Hub as your build environment.
  6. image: microsoft/dotnet:sdk
  7.  
  8. pipelines:
  9.   branches:
  10.    development:
  11.     - step:
  12.         name: Build AspNetCore project
  13.         caches:
  14.           - dotnetcore
  15.         script: # Modify the comma`nds below to build your repository.
  16.           - export PROJECT_NAME=TaskSpurAPIv1
  17.           - set ASPNETCORE_ENVIRONMENT=Development
  18.           - apt-get update
  19.           - apt-get install ncftp
  20.           - dotnet restore
  21.           - dotnet build $PROJECT_NAME
  22.           - dotnet publish --output publish --configuration release
  23.           - cd $PROJECT_NAME
  24.           - dotnet ef database update -c TaskSpurApiDbContext
  25.           - cd publish
  26.           - 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