We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99700ab commit 19bce5cCopy full SHA for 19bce5c
1 file changed
.github/workflows/ci.yml
@@ -103,8 +103,8 @@ jobs:
103
- name: Deploy to server
104
run: |
105
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
+ docker pull ${{ secrets.DOCKER_HUB_USERNAME }}/library:${{ github.sha }}
+ docker stop library || true
+ docker rm library || true
+ docker run -d --name library -p 80:8000 ${{ secrets.DOCKER_HUB_USERNAME }}/library:${{ github.sha }}
110
EOF
0 commit comments