name: Build and Deploy MikroTik Bot on: push: branches: [ main ] pull_request: branches: [ main ] jobs: build-and-deploy: runs-on: ubuntu-22.04 steps: - name: Checkout code uses: actions/checkout@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Build and push Docker image uses: docker/build-push-action@v4 with: context: . file: ./Dockerfile push: true tags: 10.10.30.121:5000/mikrotik-bot:latest insecure: true - name: Deploy to production run: | # Здесь будет команда для обновления контейнера в production echo "Deployment step - will be configured with Portainer API"