Skip to content

Instantly share code, notes, and snippets.

@Yamini-crypto
Created March 18, 2024 05:53
Show Gist options
  • Save Yamini-crypto/0f9e7e4e5fccc7420958623c1b527198 to your computer and use it in GitHub Desktop.
Save Yamini-crypto/0f9e7e4e5fccc7420958623c1b527198 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
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