Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
IDEA-DeFi-CRAFT/.github/workflows/maven.yml
View runs Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
47 lines (36 sloc)
1.29 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI with mvn | |
on: | |
push: | |
branches: [ main ] | |
paths: 'DeFi-Data-Engine/**' | |
pull_request: | |
branches: [ main ] | |
paths: 'DeFi-Data-Engine/**' | |
workflow_dispatch: | |
jobs: | |
buildandDeployDataEngine: | |
runs-on: [ self-hosted ] | |
defaults: | |
run: | |
working-directory: "DeFi-Data-Engine/DeFi Data Engine/" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build with Maven | |
run: mvn clean compile assembly:single -Dmaven.skip.test=true | |
# #Deployment will fail if there are deployments which did not come from this workflow | |
# - name: Check if existing deployments | |
# run: pkill -f 'java -jar target/defi-data-engine-0.0.1-jar-with-dependencies.jar' | |
- name: Deploy data engine | |
run: RUNNER_TRACKING_ID="" && java -jar target/defi-data-engine-0.0.1-jar-with-dependencies.jar & | |
buildRestAPI: | |
needs: buildandDeployDataEngine | |
runs-on: [ self-hosted ] | |
defaults: | |
run: | |
working-directory: "DeFi-Data-Engine/Rest Application/" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build with Maven | |
run: mvn clean compile assembly:single -Dmaven.skip.test=true | |
- name: Deploy rest application | |
run: RUNNER_TRACKING_ID="" && java -jar target/rest-connection-4.3.3-jar-with-dependencies.jar & | |