Skip to content

Commit

Permalink
Update cicd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SunYerim committed Jun 13, 2024
1 parent 9ad2a60 commit 1d79d95
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,15 @@ jobs:
docker build -t ${{ secrets.DOCKER_USERNAME }}/sunjoo:sentimentAnalysis .
docker push ${{ secrets.DOCKER_USERNAME }}/sunjoo:sentimentAnalysis
- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H ${{ secrets.HOST }} >> ~/.ssh/known_hosts
- name: SSH and Deploy
uses: appleboy/ssh-action@master
uses: appleboy/ssh-action@v0.1.5
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand Down

0 comments on commit 1d79d95

Please sign in to comment.