Created
March 18, 2024 05:54
-
-
Save Yamini-crypto/1103dbdcaca482b06664eb7fa6cf3658 to your computer and use it in GitHub Desktop.
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 | |
view rawgitlab.yaml hosted with ❤ by GitHub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment