diff --git a/.github/workflows/auto-deployment.yml b/.github/workflows/auto-deployment.yml index 513c9d0..d3ea607 100644 --- a/.github/workflows/auto-deployment.yml +++ b/.github/workflows/auto-deployment.yml @@ -34,3 +34,9 @@ jobs: chmod 755 gradlew ./gradlew bootJar ./gradlew jarDir + - name: Connect to EC2 + run: | + EC2_HOST={{ secrets.EC2_HOST }} + EC2_USERNAME={{ secrets.EC2_USERNAME }} + echo {{ secrets.EC2_PRIVATE_KEY }} > private_key.pem + ssh -i private_key.pem "${EC2_USERNAME}@${EC2_HOST}" echo hello