Skip to content

Commit

Permalink
Merge pull request #162 from ghkdqhrbals/hotfix/ssh-auto-sender
Browse files Browse the repository at this point in the history
Hotfix/ssh auto sender
  • Loading branch information
ghkdqhrbals authored Nov 16, 2023
2 parents c013469 + 67b5081 commit c4726aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,17 @@ jobs:

- name: SSH Commands
uses: appleboy/ssh-action@master
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
with:
host: ${{ secrets.EC2_URL }}
username: ec2-user
key: ${{ secrets.EC2_SSH_PRIVATE_KEY }}
script_stop: true
script: |
sudo -i
whoami
if [ ! -d "spring-chatting-server" ]; then
git clone https://github.com/ghkdqhrbals/spring-chatting-server.git spring-chatting-server
fi
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
/docker-elk
/backups
/kafka-connect-jdbc

.Ds_store
/redis
.gradle

0 comments on commit c4726aa

Please sign in to comment.