Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/backend-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
name: build-artifact
path: HalfFifty_BE/build/libs/*.jar


deploy:
name: Deploy Backend
needs: test
Expand All @@ -76,20 +77,18 @@ jobs:

- name: Verify JAR File
working-directory: HalfFifty_BE
run: |
ls -la build/libs/
run: ls -la /home/runner/work/HalfFifty/HalfFifty

- name: Set Permissions for JAR File
working-directory: HalfFifty_BE
run: chmod 644 build/libs/HalfFifty_BE-0.0.1-SNAPSHOT.jar
run: chmod 644 /home/runner/work/HalfFifty/HalfFifty/HalfFifty_BE-0.0.1-SNAPSHOT.jar

- name: Upload JAR to EC2
uses: appleboy/[email protected]
with:
host: ${{ secrets.AWS_IP }}
username: ${{ secrets.AWS_USER }}
key: ${{ secrets.AWS_KEY }}
source: ./HalfFifty_BE/build/libs/HalfFifty_BE-0.0.1-SNAPSHOT.jar
source: /home/runner/work/HalfFifty/HalfFifty/HalfFifty_BE-0.0.1-SNAPSHOT.jar
target: ~/HalfFifty_BE-0.0.1-SNAPSHOT.jar

- name: Deploy to EC2 using Docker Compose
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public class HealthCheck {

@GetMapping("/")
public String health() {
return "server on!!!!";
return "server on!!!";
}
}
Loading