Skip to content

Commit

Permalink
manual job for main
Browse files Browse the repository at this point in the history
  • Loading branch information
danielecalda committed Jul 27, 2023
1 parent 433ef20 commit 4f7f743
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 3 deletions.
27 changes: 25 additions & 2 deletions .gitlab/.gitlab-ci-datasource.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Build Latest Datasource Docker Images:
Build Tagged Datasource Docker Images:
image: eclipse-temurin:17-jdk
services:
- docker:19.03.13-dind
Expand All @@ -11,7 +11,6 @@ Build Latest Datasource Docker Images:
MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
only:
refs:
- main
- tags
changes:
- core/app/datasource/ci.properties
Expand All @@ -25,6 +24,30 @@ Build Latest Datasource Docker Images:
paths:
- .m2/repository

Build Latest Datasource Docker Images:
image: eclipse-temurin:17-jdk
services:
- docker:19.03.13-dind
stage: build-docker
variables:
TEST_NAME: local/test
DOCKER_HOST: tcp://localhost:2375
DOCKER_TLS_CERTDIR: ""
MAVEN_CLI_OPTS: "--batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
only:
refs:
- main
when:
manual
script:
- cd core
- ./mvnw package $MAVEN_CLI_OPTS -pl app/datasource -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
cache:
key: datasource
paths:
- .m2/repository

trigger_deploy_datasource:
image: curlimages/curl
stage: deploy
Expand Down
28 changes: 27 additions & 1 deletion .gitlab/.gitlab-ci-tenant-manager.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Build Latest Tenant Manager Docker Images:
Build Tagged Tenant Manager Docker Images:
image: eclipse-temurin:17-jdk
services:
- docker:19.03.13-dind
Expand Down Expand Up @@ -28,6 +28,32 @@ Build Latest Tenant Manager Docker Images:
- .m2/repository


Build Latest Tenant Manager Docker Images:
image: eclipse-temurin:17-jdk
services:
- docker:19.03.13-dind
stage: build-docker
variables:
TEST_NAME: local/test
DOCKER_HOST: tcp://localhost:2375
DOCKER_TLS_CERTDIR: ""
MAVEN_CLI_OPTS: "--batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
only:
refs:
- main
when:
manual
script:
- cd core
- ./mvnw package $MAVEN_CLI_OPTS -pl app/tenant-manager -am -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true
after_script:
- curl -X POST -F token=$DEV_TOKEN -F "variables[TRIGGER_JOB]=deploy-tenant-manager" -F ref=master $DEV_TRIGGER_URL
cache:
key: tenant-manager
paths:
- .m2/repository

trigger_deploy_tenant-manager:
image: curlimages/curl
stage: deploy
Expand Down

0 comments on commit 4f7f743

Please sign in to comment.