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.
MyCompanyApi
MyCompanyApi.sln
MyCompanyApi
:: 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-app
yarn
lyme-stack-angular-app
npm run-script build-debug
or npm run-script build-prod
lyme-stack-angular-app
(Get-Content .\dist-prod\index.html).replace('<base href="/">', '<base href="/app/"/>') | Set-Content .\dist-prod\index.html
my-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-output
Configuration=Release
LymeStackApi/LymeStackApi.Console/bin/Release/net8.0/publish
CreateChangeLog.ps1
NOTE: 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:8081
API-XXXXXXXXXXXXXXXXXXXXXXXX
nuget-pack-output/*.%build.number%.nupkg
http://localhost:8081
API-XXXXXXXXXXXXXXXXXXXXXXXX
MyCompany
Default
UAT
-Version %build.number% --space Default --gitRef master
-:.octopus