Last active
June 5, 2020 06:18
-
-
Save ankdrinsta/4f2ef0c613f8c46d16a9fdff4e16735c to your computer and use it in GitHub Desktop.
gitlab-net-pipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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