Skip to content

Commit

Permalink
chore: SSH 접속 구문 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
zeze1004 committed Mar 28, 2024
1 parent cf0dd5d commit 2d9fbf3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,15 @@ jobs:
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/odee-project:${{ github.ref_name }}

- name: Set up SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Deploy using docker-compose
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} << EOF
docker-compose -f docker-compose-dev.yml down
docker-compose -f docker-compose-dev.yml up -d
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
Expand Down

0 comments on commit 2d9fbf3

Please sign in to comment.