Skip to content

Commit 19bce5c

Browse files
committed
test ci 27 change ci.yml
1 parent 99700ab commit 19bce5c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ jobs:
103103
- name: Deploy to server
104104
run: |
105105
ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USER }}@${{ secrets.SERVER_IP }} << 'EOF'
106-
cd /home/
107-
git pull origin main
108-
docker compose down
109-
docker compose up -d --build
106+
docker pull ${{ secrets.DOCKER_HUB_USERNAME }}/library:${{ github.sha }}
107+
docker stop library || true
108+
docker rm library || true
109+
docker run -d --name library -p 80:8000 ${{ secrets.DOCKER_HUB_USERNAME }}/library:${{ github.sha }}
110110
EOF

0 commit comments

Comments
 (0)