Skip to content

Commit

Permalink
check past deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsk4 authored Oct 26, 2022
1 parent eb47a86 commit 7c3e0fb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
workflow_dispatch:

jobs:
buildDataEngine:
buildandDeployDataEngine:

runs-on: [ self-hosted ]
defaults:
Expand All @@ -22,11 +22,9 @@ jobs:
- name: Build with Maven
run: mvn clean compile assembly:single -Dmaven.skip.test=true

- name: Upload jar
uses: actions/upload-artifact@v3
with:
name: DEjar
path: "DeFi-Data-Engine/DeFi Data Engine/target/defi-data-engine-0.0.1-jar-with-dependencies.jar"
#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 &
Expand Down

0 comments on commit 7c3e0fb

Please sign in to comment.