LymeStack can use TeamCity as a Continuous Integration / Continuos (CI/CD) platform. If you don't have Team City installed on your DevOps server, see the DevOps Server Setup Guide. For our documentation we will use the hypothetical project name "MyCompany" to illustrate our examples.
The first thing you'll need to do is setup a new project in TeamCity. To do this, log onto your DevOps Server on your remote desktop and navigate to the TeamCity dashboard.
TODO: Fill this in.
Below are the steps used by TeamCity to build the application and deploy to the UAT instance being hosted on IIS on the same machine as the TeamCity build agent. For default beginning use cases, the TeamCity Server, TeamCity Build Agent and UAT IIS Web Server all run on the same server.
MyCompanyApiMyCompanyApi.slnMyCompanyApi:: del .\MyCompanyApi\bin\Release\net8.0\win-x64\publish\buildnumber.txt
@echo off
@echo %build.number%> .\MyCompanyApi\bin\Release\net8.0\win-x64\publish\buildnumber.txt
lyme-stack-angular-appyarnlyme-stack-angular-appnpm run-script build-debug or npm run-script build-prodlyme-stack-angular-app(Get-Content .\dist-prod\index.html).replace('<base href="/">', '<base href="/app/"/>') | Set-Content .\dist-prod\index.htmlmy-company-angular-app\dist-prod\MyCompanyAngularApp.nuspec
MyCompanyApi\MyCompanyApi\bin\Release\net8.0\publish\MyCompanyApi.nuspec
MyCompanyApi\MyCompany.DbUp\bin\Release\net8.0\publish\MyCompany.DbUp.nuspec
%build.number%nuget-pack-outputConfiguration=ReleaseLymeStackApi/LymeStackApi.Console/bin/Release/net8.0/publishCreateChangeLog.ps1NOTE: You need to change the _baseUrl and _tempCityProjectId in the ChangeLogDataGatherer.cs file. This is not ideal and will be fixed in a future release.
Prerequisite: You'll need to configure the deployment process in Octopus prior to completing this step
http://localhost:8081API-XXXXXXXXXXXXXXXXXXXXXXXXnuget-pack-output/*.%build.number%.nupkghttp://localhost:8081API-XXXXXXXXXXXXXXXXXXXXXXXXMyCompanyDefaultUAT-Version %build.number% --space Default --gitRef master-:.octopus