From fc83cbf7ecbfff61839968e09f9ca8d6d7e1b0f4 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Sun, 22 Jan 2023 19:33:21 +0100 Subject: [PATCH] Update CI/CD x deploy IIS02/IIS03 + nexus --- .gitlab-ci.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 576fd18..c6f59f7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -201,6 +201,26 @@ CORE.WLOG:deploy: # IIS 03 - dotnet publish -p:PublishProfile=IIS03.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj +CORE.Smart:deploy: + stage: deploy + tags: + - win + variables: + APP_NAME: GPW.CORE.Smart + SOL_NAME: GPW.CORE.Smart + only: + - main + needs: ["CORE.Smart:build"] + before_script: + - *nuget-fix + - dotnet restore "$env:SOL_NAME.sln" + script: + - dotnet build $env:APP_NAME/$env:APP_NAME.csproj + # IIS 02 + - dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj + # IIS 03 + - dotnet publish -p:PublishProfile=IIS03.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj + CORE.Api:release: stage: release tags: @@ -250,4 +270,29 @@ CORE.WLOG:release: - *hashBuild - *nexusUpload # script: + # - dotnet publish -c Release -o ./publish GPW.CORE.WRKLOG/GPW.CORE.WRKLOG.csproj + + +CORE.Smart:release: + stage: release + tags: + - win + variables: + APP_NAME: GPW.CORE.Smart + SOL_NAME: GPW.CORE.Smart + only: + - main + except: + - branches + needs: ["CORE.Smart:build"] + artifacts: + paths: + - publish/ + script: + - dotnet build $env:APP_NAME/$env:APP_NAME.csproj + - dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release $env:APP_NAME/$env:APP_NAME.csproj -o:publish -p:verbosity=quiet + # qui il deploy su nexus... + - *hashBuild + - *nexusUpload + # script: # - dotnet publish -c Release -o ./publish GPW.CORE.WRKLOG/GPW.CORE.WRKLOG.csproj \ No newline at end of file