From ddd080905ecd9716c7a975bb67e94f0a34d9c2c7 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 18 Dec 2023 11:51:04 +0100 Subject: [PATCH] update deploy TAB3 su IIS02/IIS04 --- .gitlab-ci.yml | 18 ++++++++++++++++++ MP-TAB3/MP-TAB3.csproj | 2 ++ .../Properties/PublishProfiles/IIS02.pubxml | 4 ++-- .../Properties/PublishProfiles/IIS04.pubxml | 4 ++-- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 378f9e6a..35fab5b7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -566,6 +566,24 @@ IOC:IIS02:deploy: - dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=$IIS_PASSWD -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj - dotnet publish -p:PublishProfile=IIS04.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=$IIS_PASSWD -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj +TAB3:IIS02:deploy: + stage: deploy + tags: + - win + variables: + APP_NAME: MP-TAB3 + SOL_NAME: MP-TAB3 + before_script: + - *nuget-fix + - dotnet restore "$env:SOL_NAME.sln" + rules: + - if: $CI_COMMIT_BRANCH == 'master' + needs: ["IOC:build"] + script: + - dotnet build $env:APP_NAME/$env:APP_NAME.csproj + - dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=$IIS_PASSWD -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj + - dotnet publish -p:PublishProfile=IIS04.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=$IIS_PASSWD -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj + # ----- Start INSTALLER (develop/master) ----- LAND:installer: stage: installer diff --git a/MP-TAB3/MP-TAB3.csproj b/MP-TAB3/MP-TAB3.csproj index 9ea27865..6c8f14ed 100644 --- a/MP-TAB3/MP-TAB3.csproj +++ b/MP-TAB3/MP-TAB3.csproj @@ -14,6 +14,8 @@ <_WebToolingArtifacts Remove="Properties\PublishProfiles\IIS01.pubxml" /> + <_WebToolingArtifacts Remove="Properties\PublishProfiles\IIS02.pubxml" /> + <_WebToolingArtifacts Remove="Properties\PublishProfiles\IIS04.pubxml" /> <_WebToolingArtifacts Remove="Properties\PublishProfiles\IISProfile.pubxml" /> diff --git a/MP-TAB3/Properties/PublishProfiles/IIS02.pubxml b/MP-TAB3/Properties/PublishProfiles/IIS02.pubxml index ed89c11d..7590d6fc 100644 --- a/MP-TAB3/Properties/PublishProfiles/IIS02.pubxml +++ b/MP-TAB3/Properties/PublishProfiles/IIS02.pubxml @@ -8,11 +8,11 @@ https://go.microsoft.com/fwlink/?LinkID=208121. true Release Any CPU - https://iis01.egalware.com/MP/TAB3 + https://iis02.egalware.com/MP/TAB3 false e7a7c262-7807-4503-949d-5a6fe3df4400 false - https://iis01.egalware.com:8172/MsDeploy.axd + https://iis02.egalware.com:8172/MsDeploy.axd Default Web Site/MP/TAB3 true diff --git a/MP-TAB3/Properties/PublishProfiles/IIS04.pubxml b/MP-TAB3/Properties/PublishProfiles/IIS04.pubxml index ed89c11d..d13fe48d 100644 --- a/MP-TAB3/Properties/PublishProfiles/IIS04.pubxml +++ b/MP-TAB3/Properties/PublishProfiles/IIS04.pubxml @@ -8,11 +8,11 @@ https://go.microsoft.com/fwlink/?LinkID=208121. true Release Any CPU - https://iis01.egalware.com/MP/TAB3 + https://iis04.egalware.com/MP/TAB3 false e7a7c262-7807-4503-949d-5a6fe3df4400 false - https://iis01.egalware.com:8172/MsDeploy.axd + https://iis04.egalware.com:8172/MsDeploy.axd Default Web Site/MP/TAB3 true