Skip to content

Instantly share code, notes, and snippets.

@ankdrinsta
Last active June 5, 2020 06:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ankdrinsta/4f2ef0c613f8c46d16a9fdff4e16735c to your computer and use it in GitHub Desktop.
Save ankdrinsta/4f2ef0c613f8c46d16a9fdff4e16735c to your computer and use it in GitHub Desktop.
gitlab-net-pipeline
stages:
- build
- deploy
build:
only:
- master
stage: "build"
tags:
- WIN-CI-SERVER
script:
- nuget restore
- msbuild ".\dotnet-project\dotnet-project.csproj" "-p:Configuration=Release;Outdir=.\Build;DeployOnBuild=true;DeployTarget=Package"
artifacts:
paths:
- .\dotnet-project\Build\_PublishedWebsites\dotnet-project_Package\
deploy:
only:
- master
stage: "deploy"
when: manual
tags:
- WIN-CI-SERVER
script:
- .\dotnet-project\Build\_PublishedWebsites\dotnet-project_Package\dotnet-project.deploy.cmd /Y /M:http://172.31.1.224/MSDeployAgentService /U:$env:CI_USER_NAME /P:$env:CI_USER_PASSWORD -allowUntrusted "-setParam:name='IIS Web Application Name',value='sample web site'"
- curl http://172.31.1.224
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment