From 219395ce35ee878e92bed1af628ad0fea44cae98 Mon Sep 17 00:00:00 2001 From: Jeongmin39 <80705450+Jeongmin39@users.noreply.github.com> Date: Tue, 19 Nov 2024 02:16:10 +0900 Subject: [PATCH] Update gradle.yml --- .github/workflows/gradle.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index f8cad13..c831ade 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -54,11 +54,11 @@ jobs: - name: Deploy JAR to EC2 using sshpass run: | - sshpass -p "${{ secrets.EC2_PASSWORD }}" scp -o StrictHostKeyChecking=no build/libs/spotserver-0.0.1-SNAPSHOT.jar ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }}:/home/${{ secrets.EC2_USER }}/ + sshpass -p "${{ secrets.EC2_KEY }}" scp -o StrictHostKeyChecking=no build/libs/spotserver-0.0.1-SNAPSHOT.jar ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }}:/home/${{ secrets.EC2_USER }}/ - name: Execute commands on EC2 using sshpass run: | - sshpass -p "${{ secrets.EC2_PASSWORD }}" ssh -o StrictHostKeyChecking=no ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} << 'EOF' + sshpass -p "${{ secrets.EC2_KEY }}" ssh -o StrictHostKeyChecking=no ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }} << 'EOF' # Set PATH if needed export PATH=/usr/bin:/bin:/sbin:/usr/sbin