File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 7272 SERVER_IP : ${{ secrets.SERVER_IP }}
7373 SERVER_USER : ${{ secrets.SERVER_USER }}
7474 run : |
75+ cat > .env <<EOL
76+ BOT_TOKEN=$BOT_TOKEN
77+ GPT_TOKEN=$GPT_TOKEN
78+ EOL
7579 ssh $SERVER_USER@$SERVER_IP << 'EOF'
7680 # Установка зависимостей (если их нет)
7781 if ! command -v docker &> /dev/null; then
@@ -94,13 +98,11 @@ jobs:
9498 git clone https://github.com/Dema-koder/Automating-route-selection.git
9599 cd Automating-route-selection
96100 fi
101+ EOF
97102
98- cat > .env <<EOL
99- BOT_TOKEN=$BOT_TOKEN
100- GPT_TOKEN=$GPT_TOKEN
101- EOL
102-
103- # Запуск приложения
103+ scp .env $SERVER_USER@$SERVER_IP:~/Automating-route-selection/.env
104+
105+ ssh $SERVER_USER@$SERVER_IP << 'EOF'
104106 sudo docker-compose down || true
105107 sudo docker-compose up -d --build
106108 EOF
You can’t perform that action at this time.
0 commit comments