Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
iljavaleev committed Jun 21, 2024
1 parent 0f626f1 commit 8cc353d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ jobs:
echo POSTGRES_PORT=${{ secrets.POSTGRES_PORT }} >> .env
echo POSTGRES_HOST=${{ secrets.POSTGRES_HOST }} >> .env
echo ADMIN_CHAT_ID=${{ secrets.ADMIN_CHAT_ID }} >> .env
echo NGROK_AUTHTOKEN=${{ secrets.NGROK_AUTHTOKEN }} >> .env
echo BASE_WEBHOOK_URL=${{ secrets.BASE_WEBHOOK_URL }} >> .env
echo NGROK_URL=${{ secrets.NGROK_URL }} >> .env
sudo docker compose down
sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/cppbot:v1
sudo docker compose up -d --build
Expand Down
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ find_package(OpenSSL REQUIRED)
find_package(Boost COMPONENTS system REQUIRED)
find_package(CURL)



include_directories(/usr/local/include ${OPENSSL_INCLUDE_DIR} ${Boost_INCLUDE_DIR})
if (CURL_FOUND)
include_directories(${CURL_INCLUDE_DIRS})
Expand Down
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ int main() {
std::string bot_token = std::string(std::getenv("BOT_TOKEN"));
std::string base_webhook_url = std::string(std::getenv("BASE_WEBHOOK_URL"));
std::string TEL = std::format("https://api.telegram.org/bot{}/setWebhook?url=", bot_token);
std::string WEBHOOK_URL =base_webhook_url + std::format("/{}", bot_token);
std::string WEBHOOK_URL = base_webhook_url + std::format("/{}", bot_token);

TgBot::Bot bot(std::getenv("BOT_TOKEN"));
std::vector<BotCommand::Ptr> commands = create_commands();
Expand Down

0 comments on commit 8cc353d

Please sign in to comment.