Skip to content

Commit

Permalink
Modiefied deploymnet script
Browse files Browse the repository at this point in the history
Splitted the backend execute step into 2 separate steps
  • Loading branch information
P3TROOS committed Oct 8, 2023
1 parent 57a854d commit 5e67577
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ jobs:
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Kill current process on backend port
run: sudo kill -9 $(sudo lsof -t -i:8080) &

- name: Build backend
run: mvn -B package --file backend/infosafe_backend/pom.xml

- name: Execute backend
run: sudo kill -9 $(sudo lsof -t -i:8080) && sudo java -jar /home/ubuntu/actions-runner/_work/InfoSafe/InfoSafe/backend/infosafe_backend/target/infosafe_backend-0.0.1-SNAPSHOT.jar &
run: sudo java -jar /home/ubuntu/actions-runner/_work/InfoSafe/InfoSafe/backend/infosafe_backend/target/infosafe_backend-0.0.1-SNAPSHOT.jar &

# - name: Publish to GitHub Packages Apache Maven
# run: |
Expand Down

0 comments on commit 5e67577

Please sign in to comment.