Skip to content

Commit

Permalink
Issue #1075: put merge request condition before feature branch condit…
Browse files Browse the repository at this point in the history
…ion #2
  • Loading branch information
danielecalda committed Aug 14, 2024
1 parent e28af80 commit f1b37f9
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .gitlab/.gitlab-ci-entity-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ Build Entity-Manager image:
- |
if [[ "$CI_COMMIT_BRANCH" == "main" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/entity-manager -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/entity-manager -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) && "$CI_COMMIT_AUTHOR" == "michele.bastianelli" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/entity-manager -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=998-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/entity-manager -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=999-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/entity-manager -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false
fi
artifacts:
paths:
Expand Down
4 changes: 2 additions & 2 deletions .gitlab/.gitlab-ci-file-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ Build File-Manager image:
- |
if [[ "$CI_COMMIT_BRANCH" == "main" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/file-manager -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/entity-manager -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) && "$CI_COMMIT_AUTHOR" == "michele.bastianelli" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/file-manager -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=998-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/file-manager -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=999-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/file-manager -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false -P 'exclude-quarkus-test'
fi
artifacts:
paths:
Expand Down
4 changes: 3 additions & 1 deletion .gitlab/.gitlab-ci-ingestion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ Build Ingestion image:
- FEATURE_BRANCH_REGEX='^\d+-.*$'
- |
if [[ "$CI_COMMIT_BRANCH" == "main" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/ingestion -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -P 'exclude-quarkus-test'
./mvnw package $MAVEN_CLI_OPTS -pl app/ingestion -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/entity-manager -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) && "$CI_COMMIT_AUTHOR" == "michele.bastianelli" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/ingestion -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=998-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) ]]; then
Expand Down
4 changes: 2 additions & 2 deletions .gitlab/.gitlab-ci-k8s-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ Build K8S-Client image:
- |
if [[ "$CI_COMMIT_BRANCH" == "main" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/k8s-client -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/entity-manager -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) && "$CI_COMMIT_AUTHOR" == "michele.bastianelli" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/k8s-client -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=998-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/k8s-client -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=999-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/k8s-client -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false -P 'exclude-quarkus-test'
fi
artifacts:
paths:
Expand Down
6 changes: 3 additions & 3 deletions .gitlab/.gitlab-ci-resources-validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ Build Resource-Validator image:
- FEATURE_BRANCH_REGEX='^\d+-.*$'
- |
if [[ "$CI_COMMIT_BRANCH" == "main" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/resources-validator -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
./mvnw package $MAVEN_CLI_OPTS -pl app/resources-validator -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/entity-manager -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) && "$CI_COMMIT_AUTHOR" == "michele.bastianelli" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/resources-validator -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=998-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/resources-validator -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=999-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/resources-validator -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false -P 'exclude-quarkus-test'
fi
artifacts:
paths:
Expand Down
6 changes: 3 additions & 3 deletions .gitlab/.gitlab-ci-searcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ Build Searcher Image:
- FEATURE_BRANCH_REGEX='^\d+-.*$'
- |
if [[ "$CI_COMMIT_BRANCH" == "main" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/searcher -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
./mvnw package $MAVEN_CLI_OPTS -pl app/searcher -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/entity-manager -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) && "$CI_COMMIT_AUTHOR" == "michele.bastianelli" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/searcher -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=998-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/searcher -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=999-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/searcher -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false -P 'exclude-quarkus-test'
fi
artifacts:
paths:
Expand Down
6 changes: 3 additions & 3 deletions .gitlab/.gitlab-ci-tenant-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ Build Tenant-Manager image:
- FEATURE_BRANCH_REGEX='^\d+-.*$'
- |
if [[ "$CI_COMMIT_BRANCH" == "main" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/tenant-manager -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
./mvnw package $MAVEN_CLI_OPTS -pl app/tenant-manager -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/entity-manager -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) && "$CI_COMMIT_AUTHOR" == "michele.bastianelli" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/tenant-manager -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=998-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/tenant-manager -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=999-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/tenant-manager -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false -P 'exclude-quarkus-test'
fi
artifacts:
paths:
Expand Down
6 changes: 3 additions & 3 deletions .gitlab/.gitlab-ci-tika-no-ocr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ Build Tika no-ocr:
- FEATURE_BRANCH_REGEX='^\d+-.*$'
- |
if [[ "$CI_COMMIT_TAG" || "$CI_COMMIT_BRANCH" == "main" || "$CI_COMMIT_BRANCH" == "608-flusso-pipeline-devops" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/tika/tika-no-ocr -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
./mvnw package $MAVEN_CLI_OPTS -pl app/tika/tika-no-ocr -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/entity-manager -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) && "$CI_COMMIT_AUTHOR" == "michele.bastianelli" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/tika/tika-no-ocr -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=998-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/tika/tika-no-ocr -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=999-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/tika/tika-no-ocr -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false -P 'exclude-quarkus-test'
fi
artifacts:
paths:
Expand Down
6 changes: 3 additions & 3 deletions .gitlab/.gitlab-ci-tika-ocr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ Build Tika ocr:
- FEATURE_BRANCH_REGEX='^\d+-.*$'
- |
if [[ "$CI_COMMIT_TAG" || "$CI_COMMIT_BRANCH" == "main" || "$CI_COMMIT_BRANCH" == "608-flusso-pipeline-devops" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/tika/tika-ocr -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
./mvnw package $MAVEN_CLI_OPTS -pl app/tika/tika-ocr -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/entity-manager -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) && "$CI_COMMIT_AUTHOR" == "michele.bastianelli" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/tika/tika-ocr -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=998-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_COMMIT_BRANCH" =~ $(FEATURE_BRANCH_REGEX) ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/tika/tika-ocr -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=999-SNAPSHOT -P 'exclude-quarkus-test'
elif [[ "$CI_MERGE_REQUEST_ID" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl app/tika/tika-ocr -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false -P 'exclude-quarkus-test'
fi
artifacts:
paths:
Expand Down

0 comments on commit f1b37f9

Please sign in to comment.