Skip to content

Commit

Permalink
chore: [FOLIO-3] Update workflow script
Browse files Browse the repository at this point in the history
  • Loading branch information
YerangPark committed Aug 23, 2024
1 parent 1064e92 commit 54465c5
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/docker-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ jobs:
needs: build

steps:
#ANCHOR - SSH 연결 테스트
- name: SSH to Deploy Server
uses: appleboy/ssh-action@v0.1.7
with:
Expand All @@ -58,15 +57,7 @@ jobs:
script: |
echo "SSH 연결 테스트 완료."
docker --version
- name: SSH to Deploy Server
uses: appleboy/ssh-action@v0.1.7
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/frontend-folio:latest
docker stop frontend-folio || true
docker rm frontend-folio || true
Expand Down

0 comments on commit 54465c5

Please sign in to comment.