Update .gitlab-ci.yml file

This commit is contained in:
Samuele Emilio Locatelli
2023-11-17 08:08:41 +00:00
parent 066bdf911b
commit 9e8a94c94e
+9 -4
View File
@@ -91,13 +91,16 @@ LAND:build:
APP_NAME: MP.Land
SOL_NAME: MP-LAND
rules:
- if: $CI_COMMIT_BRANCH == "develop"
- if: $CI_COMMIT_BRANCH == "master"
- if: $CI_COMMIT_BRANCH =~ "/^feature/LAND.+"
# - if: $CI_COMMIT_BRANCH =~ /^feature/
# when: never
- if: $CI_COMMIT_BRANCH == 'develop'
- if: $CI_COMMIT_BRANCH == 'master'
# - if: $CI_COMMIT_BRANCH =~ /^feature/LAND.+/
before_script:
- *nuget-fix
- dotnet restore "$env:SOL_NAME.sln"
script:
- echo $CI_COMMIT_BRANCH
- dotnet build $env:APP_NAME/$env:APP_NAME.csproj
PROG:build:
@@ -108,9 +111,11 @@ PROG:build:
APP_NAME: MP.Prog
SOL_NAME: MP-PROG
rules:
- if: $CI_COMMIT_BRANCH =~ "feature/"
when: never
- if: $CI_COMMIT_BRANCH == "develop"
- if: $CI_COMMIT_BRANCH == "master"
# - if: $CI_COMMIT_BRANCH =~ /^feature/PROG*
- if: $CI_COMMIT_BRANCH =~ "feature/PROG.+"
before_script:
- *nuget-fix
- dotnet restore "$env:SOL_NAME.sln"