github.com/hungdoo/bot@v0.0.0-20240325145135-dd1f386f7b81/deploy.sh (about)

     1  #!/bin/bash
     2  
     3  # Step 1: Build the Docker image
     4  docker build -t hungddoo/telebot:latest .
     5  
     6  # Step 2: Push the Docker image to Docker Hub
     7  docker push hungddoo/telebot:latest
     8  
     9  # Step 3: SSH into the host server and restart the Docker Compose orchestration
    10  # ssh user@your-host-server "cd /path/to/your/docker-compose/directory && docker-compose down && docker-compose pull && docker-compose up -d"