Skip to content

Instantly share code, notes, and snippets.

@Yamini-crypto
Last active March 18, 2024 06:56
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 Yamini-crypto/b3f9adbcab8bbeeb5568e50cdf4ed783 to your computer and use it in GitHub Desktop.
Save Yamini-crypto/b3f9adbcab8bbeeb5568e50cdf4ed783 to your computer and use it in GitHub Desktop.
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