Skip to content

Commit

Permalink
ci: update dockerfile and project name
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkafadar committed Jan 21, 2024
1 parent 1a85cb9 commit 8eeee75
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
30 changes: 15 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "telegram-gitlab"
name = "notifine"
version = "0.1.0"
edition = "2021"

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ RUN cargo build --release
FROM debian:bullseye-slim
EXPOSE 8080
RUN apt-get update && apt-get install postgresql -y
COPY --from=builder ./target/release/telegram-gitlab ./target/release/telegram-gitlab
RUN chmod +x ./target/release/telegram-gitlab
CMD ["/target/release/telegram-gitlab"]
COPY --from=builder ./target/release/notifine ./target/release/notifine
RUN chmod +x ./target/release/notifine
CMD ["/target/release/notifine"]
2 changes: 1 addition & 1 deletion src/http_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use crate::webhook_handlers::unknown_event::handle_unknown_event;
use actix_web::{
get, middleware, post, web, App, HttpRequest, HttpResponse, HttpServer, Responder,
};
use notifine::{find_chat_by_id, find_webhook_by_webhook_url};
use serde::Deserialize;
use telegram_gitlab::{find_chat_by_id, find_webhook_by_webhook_url};

#[derive(Debug, Deserialize)]
pub struct GitlabEvent {
Expand Down
2 changes: 1 addition & 1 deletion src/telegram_bot.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use notifine::{create_chat, create_webhook};
use rand::distributions::Alphanumeric;
use rand::{thread_rng, Rng};
use std::ops::Add;
use telegram_gitlab::{create_chat, create_webhook};
use teloxide::dispatching::dialogue;
use teloxide::dispatching::dialogue::InMemStorage;
use teloxide::dptree::case;
Expand Down

0 comments on commit 8eeee75

Please sign in to comment.