Skip to content

Commit

Permalink
Issue #1071: fixed resources validator build image job
Browse files Browse the repository at this point in the history
  • Loading branch information
danielecalda committed Aug 13, 2024
1 parent 04084bc commit 16c02f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .gitlab/.gitlab-ci-entity-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ Build Entity-Manager image:
echo "$VERSION" > $CI_PROJECT_DIR/.version
- |
if [[ "$CI_COMMIT_BRANCH" == "main" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl ../vendor/hibernate-rx-multitenancy/deployment,app/entity-manager -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
./mvnw package $MAVEN_CLI_OPTS -pl app/entity-manager -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
elif [[ "$CI_COMMIT_BRANCH" =~ ^\d+-.*$ && "$CI_COMMIT_AUTHOR" == "michele.bastianelli" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl ../vendor/hibernate-rx-multitenancy/deployment,app/entity-manager -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=998-SNAPSHOT -P 'exclude-quarkus-test'
./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" =~ ^\d+-.*$ ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl ../vendor/hibernate-rx-multitenancy/deployment,app/entity-manager -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=999-SNAPSHOT -P 'exclude-quarkus-test'
./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_PIPELINE_SOURCE" == "merge_request_event" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl ../vendor/hibernate-rx-multitenancy/deployment,app/entity-manager -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false
./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
8 changes: 4 additions & 4 deletions .gitlab/.gitlab-ci-resources-validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ Build Resource-Validator image:
echo "$VERSION" > $CI_PROJECT_DIR/.version
- |
if [[ "$CI_COMMIT_BRANCH" == "main" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl ../vendor/hibernate-rx-multitenancy/deployment,app/resource-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_COMMIT_BRANCH" =~ ^\d+-.*$ && "$CI_COMMIT_AUTHOR" == "michele.bastianelli" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl ../vendor/hibernate-rx-multitenancy/deployment,app/resource-validator -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=998-SNAPSHOT -P 'exclude-quarkus-test'
./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" =~ ^\d+-.*$ ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl ../vendor/hibernate-rx-multitenancy/deployment,app/resource-validator -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=999-SNAPSHOT -P 'exclude-quarkus-test'
./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_PIPELINE_SOURCE" == "merge_request_event" ]]; then
./mvnw package $MAVEN_CLI_OPTS -pl ../vendor/hibernate-rx-multitenancy/deployment,app/resource-validator -am -Dquarkus.container-image.build=false -Dquarkus.container-image.push=false -P 'exclude-quarkus-test'
./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

0 comments on commit 16c02f7

Please sign in to comment.