Skip to content

Commit

Permalink
vm pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
asadsahi committed Nov 24, 2023
1 parent 11ed64c commit 623093b
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 79 deletions.
33 changes: 22 additions & 11 deletions .github/workflows/sts-win.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
name: sts-win
name: win-ssh-sts

on:
push:
branches:
- master

jobs:
build-deploy:
runs-on: self-hosted
build-test-publish-ftp:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build with dotnet
run: dotnet build AspNetCoreSpa.sln -c Release
- name: dotnet publish
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.100'

- name: Publish
run: dotnet publish src/Presentation/STS/STS.csproj -c Release -o publish
- name: Deploy to IIS
run: |
iisreset /stop
Copy-Item ./publish/* C:/inetpub/wwwroot/identityserver -Recurse -Force
iisreset /start
- name: Deploy
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.SSH_SERVER }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: 2222
source: publish/*
target: '/c/inetpub/wwwroot/identityserver/'
tar_dereference: true
strip_components: 1
rm: true
33 changes: 22 additions & 11 deletions .github/workflows/web-win.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
name: web-win
name: win-ssh-web

on:
push:
branches:
- master

jobs:
build-deploy:
runs-on: self-hosted
build-test-publish-ftp:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build with dotnet
run: dotnet build AspNetCoreSpa.sln -c Release
- name: dotnet publish
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.100'

- name: Publish
run: dotnet publish src/Presentation/Web/Web.csproj -c Release -o publish
- name: Deploy to IIS
run: |
iisreset /stop
Copy-Item ./publish/* C:/inetpub/wwwroot/aspnetcorespa -Recurse -Force
iisreset /start
- name: Deploy
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.SSH_SERVER }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: 2222
source: publish/*
target: '/c/inetpub/wwwroot/aspnetcorespa/'
tar_dereference: true
strip_components: 1
rm: true
114 changes: 57 additions & 57 deletions AspNetCoreSpa.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,88 +3,88 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.002.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{F16D432B-B83B-4C27-B2D8-7CAA83284E66}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{C7F21EA9-86C8-4CB7-8EB0-311B72E8D641}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Integration.Tests", "tests\Integration\Integration.Tests.csproj", "{355AEFC4-5511-4CE4-912C-330F874E5240}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Integration.Tests", "tests\Integration\Integration.Tests.csproj", "{3C437ECE-E393-45C1-8764-0D6FFDFA1697}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Web.Tests", "tests\Web\Web.Tests.csproj", "{0EB5037A-5574-40C6-B642-FB34C0AFA9D1}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Web.Tests", "tests\Web\Web.Tests.csproj", "{8124CEBD-A01B-43C2-AD34-EA26D5CC0571}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{250813E0-0A2C-472F-A704-9625111EA3B2}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{67B7475D-DC94-4652-B6BA-16C20AF18BB3}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Core", "Core", "{97E4929F-82FD-4C7E-922A-84329485443E}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Core", "Core", "{1AA566A5-811A-4211-B7A1-7E2F33033F6B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Application", "src\Core\Application\Application.csproj", "{6B6C93CE-4AC2-4A69-B126-D78EDF6B674C}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Application", "src\Core\Application\Application.csproj", "{3A83D58F-0753-4426-9447-A49A0794B2CC}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common", "src\Core\Common\Common.csproj", "{53E79B8D-3924-4B64-88A7-06AC0F5478A6}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common", "src\Core\Common\Common.csproj", "{98359214-1187-46B3-80F2-7B209A261BC8}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Domain", "src\Core\Domain\Domain.csproj", "{3C132465-1792-49DD-A4B5-E0EED7424BFB}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Domain", "src\Core\Domain\Domain.csproj", "{C1210808-631F-4053-B0C3-5E89AFFD9AB2}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Infrastructure", "Infrastructure", "{CD0A1148-15A8-42E8-8B56-0F6B5B5AA0A9}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Infrastructure", "Infrastructure", "{E7CD757A-733E-4B0A-9999-9FBA74B06CE2}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Infrastructure", "src\Infrastructure\Infrastructure\Infrastructure.csproj", "{F819CD1A-F549-438E-8BC8-22AF11F7101F}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Infrastructure", "src\Infrastructure\Infrastructure\Infrastructure.csproj", "{4276C7D3-576C-43AF-88DD-D9DBFA644F1B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Presentation", "Presentation", "{FFDB1150-9635-425D-9996-54A2A6472858}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Presentation", "Presentation", "{32A6286C-7BA9-4C53-A8AB-9CE0067DA171}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "STS", "src\Presentation\STS\STS.csproj", "{2595F4C1-5F90-4186-A402-7060F9D21D4B}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "STS", "src\Presentation\STS\STS.csproj", "{48F016C7-1A9B-4578-BA39-7541D1D19EFB}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Web", "src\Presentation\Web\Web.csproj", "{6B4B71F9-DE65-4A50-BFA6-1A52273836C8}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Web", "src\Presentation\Web\Web.csproj", "{2BEE6BA1-4245-4DEC-9ECE-D02581875DC3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{355AEFC4-5511-4CE4-912C-330F874E5240}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{355AEFC4-5511-4CE4-912C-330F874E5240}.Debug|Any CPU.Build.0 = Debug|Any CPU
{355AEFC4-5511-4CE4-912C-330F874E5240}.Release|Any CPU.ActiveCfg = Release|Any CPU
{355AEFC4-5511-4CE4-912C-330F874E5240}.Release|Any CPU.Build.0 = Release|Any CPU
{0EB5037A-5574-40C6-B642-FB34C0AFA9D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0EB5037A-5574-40C6-B642-FB34C0AFA9D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0EB5037A-5574-40C6-B642-FB34C0AFA9D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0EB5037A-5574-40C6-B642-FB34C0AFA9D1}.Release|Any CPU.Build.0 = Release|Any CPU
{6B6C93CE-4AC2-4A69-B126-D78EDF6B674C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6B6C93CE-4AC2-4A69-B126-D78EDF6B674C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6B6C93CE-4AC2-4A69-B126-D78EDF6B674C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6B6C93CE-4AC2-4A69-B126-D78EDF6B674C}.Release|Any CPU.Build.0 = Release|Any CPU
{53E79B8D-3924-4B64-88A7-06AC0F5478A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{53E79B8D-3924-4B64-88A7-06AC0F5478A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{53E79B8D-3924-4B64-88A7-06AC0F5478A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{53E79B8D-3924-4B64-88A7-06AC0F5478A6}.Release|Any CPU.Build.0 = Release|Any CPU
{3C132465-1792-49DD-A4B5-E0EED7424BFB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3C132465-1792-49DD-A4B5-E0EED7424BFB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3C132465-1792-49DD-A4B5-E0EED7424BFB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3C132465-1792-49DD-A4B5-E0EED7424BFB}.Release|Any CPU.Build.0 = Release|Any CPU
{F819CD1A-F549-438E-8BC8-22AF11F7101F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F819CD1A-F549-438E-8BC8-22AF11F7101F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F819CD1A-F549-438E-8BC8-22AF11F7101F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F819CD1A-F549-438E-8BC8-22AF11F7101F}.Release|Any CPU.Build.0 = Release|Any CPU
{2595F4C1-5F90-4186-A402-7060F9D21D4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2595F4C1-5F90-4186-A402-7060F9D21D4B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2595F4C1-5F90-4186-A402-7060F9D21D4B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2595F4C1-5F90-4186-A402-7060F9D21D4B}.Release|Any CPU.Build.0 = Release|Any CPU
{6B4B71F9-DE65-4A50-BFA6-1A52273836C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6B4B71F9-DE65-4A50-BFA6-1A52273836C8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6B4B71F9-DE65-4A50-BFA6-1A52273836C8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6B4B71F9-DE65-4A50-BFA6-1A52273836C8}.Release|Any CPU.Build.0 = Release|Any CPU
{3C437ECE-E393-45C1-8764-0D6FFDFA1697}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3C437ECE-E393-45C1-8764-0D6FFDFA1697}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3C437ECE-E393-45C1-8764-0D6FFDFA1697}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3C437ECE-E393-45C1-8764-0D6FFDFA1697}.Release|Any CPU.Build.0 = Release|Any CPU
{8124CEBD-A01B-43C2-AD34-EA26D5CC0571}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8124CEBD-A01B-43C2-AD34-EA26D5CC0571}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8124CEBD-A01B-43C2-AD34-EA26D5CC0571}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8124CEBD-A01B-43C2-AD34-EA26D5CC0571}.Release|Any CPU.Build.0 = Release|Any CPU
{3A83D58F-0753-4426-9447-A49A0794B2CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3A83D58F-0753-4426-9447-A49A0794B2CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3A83D58F-0753-4426-9447-A49A0794B2CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3A83D58F-0753-4426-9447-A49A0794B2CC}.Release|Any CPU.Build.0 = Release|Any CPU
{98359214-1187-46B3-80F2-7B209A261BC8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{98359214-1187-46B3-80F2-7B209A261BC8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{98359214-1187-46B3-80F2-7B209A261BC8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{98359214-1187-46B3-80F2-7B209A261BC8}.Release|Any CPU.Build.0 = Release|Any CPU
{C1210808-631F-4053-B0C3-5E89AFFD9AB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C1210808-631F-4053-B0C3-5E89AFFD9AB2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C1210808-631F-4053-B0C3-5E89AFFD9AB2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C1210808-631F-4053-B0C3-5E89AFFD9AB2}.Release|Any CPU.Build.0 = Release|Any CPU
{4276C7D3-576C-43AF-88DD-D9DBFA644F1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4276C7D3-576C-43AF-88DD-D9DBFA644F1B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4276C7D3-576C-43AF-88DD-D9DBFA644F1B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4276C7D3-576C-43AF-88DD-D9DBFA644F1B}.Release|Any CPU.Build.0 = Release|Any CPU
{48F016C7-1A9B-4578-BA39-7541D1D19EFB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{48F016C7-1A9B-4578-BA39-7541D1D19EFB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{48F016C7-1A9B-4578-BA39-7541D1D19EFB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{48F016C7-1A9B-4578-BA39-7541D1D19EFB}.Release|Any CPU.Build.0 = Release|Any CPU
{2BEE6BA1-4245-4DEC-9ECE-D02581875DC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2BEE6BA1-4245-4DEC-9ECE-D02581875DC3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2BEE6BA1-4245-4DEC-9ECE-D02581875DC3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2BEE6BA1-4245-4DEC-9ECE-D02581875DC3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{355AEFC4-5511-4CE4-912C-330F874E5240} = {F16D432B-B83B-4C27-B2D8-7CAA83284E66}
{0EB5037A-5574-40C6-B642-FB34C0AFA9D1} = {F16D432B-B83B-4C27-B2D8-7CAA83284E66}
{97E4929F-82FD-4C7E-922A-84329485443E} = {250813E0-0A2C-472F-A704-9625111EA3B2}
{6B6C93CE-4AC2-4A69-B126-D78EDF6B674C} = {97E4929F-82FD-4C7E-922A-84329485443E}
{53E79B8D-3924-4B64-88A7-06AC0F5478A6} = {97E4929F-82FD-4C7E-922A-84329485443E}
{3C132465-1792-49DD-A4B5-E0EED7424BFB} = {97E4929F-82FD-4C7E-922A-84329485443E}
{CD0A1148-15A8-42E8-8B56-0F6B5B5AA0A9} = {250813E0-0A2C-472F-A704-9625111EA3B2}
{F819CD1A-F549-438E-8BC8-22AF11F7101F} = {CD0A1148-15A8-42E8-8B56-0F6B5B5AA0A9}
{FFDB1150-9635-425D-9996-54A2A6472858} = {250813E0-0A2C-472F-A704-9625111EA3B2}
{2595F4C1-5F90-4186-A402-7060F9D21D4B} = {FFDB1150-9635-425D-9996-54A2A6472858}
{6B4B71F9-DE65-4A50-BFA6-1A52273836C8} = {FFDB1150-9635-425D-9996-54A2A6472858}
{3C437ECE-E393-45C1-8764-0D6FFDFA1697} = {C7F21EA9-86C8-4CB7-8EB0-311B72E8D641}
{8124CEBD-A01B-43C2-AD34-EA26D5CC0571} = {C7F21EA9-86C8-4CB7-8EB0-311B72E8D641}
{1AA566A5-811A-4211-B7A1-7E2F33033F6B} = {67B7475D-DC94-4652-B6BA-16C20AF18BB3}
{3A83D58F-0753-4426-9447-A49A0794B2CC} = {1AA566A5-811A-4211-B7A1-7E2F33033F6B}
{98359214-1187-46B3-80F2-7B209A261BC8} = {1AA566A5-811A-4211-B7A1-7E2F33033F6B}
{C1210808-631F-4053-B0C3-5E89AFFD9AB2} = {1AA566A5-811A-4211-B7A1-7E2F33033F6B}
{E7CD757A-733E-4B0A-9999-9FBA74B06CE2} = {67B7475D-DC94-4652-B6BA-16C20AF18BB3}
{4276C7D3-576C-43AF-88DD-D9DBFA644F1B} = {E7CD757A-733E-4B0A-9999-9FBA74B06CE2}
{32A6286C-7BA9-4C53-A8AB-9CE0067DA171} = {67B7475D-DC94-4652-B6BA-16C20AF18BB3}
{48F016C7-1A9B-4578-BA39-7541D1D19EFB} = {32A6286C-7BA9-4C53-A8AB-9CE0067DA171}
{2BEE6BA1-4245-4DEC-9ECE-D02581875DC3} = {32A6286C-7BA9-4C53-A8AB-9CE0067DA171}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {FF6068D8-CFE9-4114-8CD9-E463F8EEC359}
SolutionGuid = {8DDACBC6-B0DE-4B2E-B89A-C8650E147685}
EndGlobalSection
EndGlobal

0 comments on commit 623093b

Please sign in to comment.