diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index b7d38e6..03bde8b 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -47,10 +47,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - - name: Download build artifact - uses: actions/download-artifact@v3 - with: - name: production-artifacts - name: Set up Docker Build uses: docker/setup-buildx-action@v3 diff --git a/Dockerfile b/Dockerfile index 8566d90..de33f58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.67 +FROM rust:1.76 WORKDIR /usr/doclytics COPY . . diff --git a/src/main.rs b/src/main.rs index 6d5220b..1723d79 100644 --- a/src/main.rs +++ b/src/main.rs @@ -135,9 +135,9 @@ async fn generate_response( } #[tokio::main] async fn main() -> Result<(), Box> { - let base_url = std::env::var("BASE_URL").unwrap(); + let base_url = std::env::var("PAPERLESS_BASE_URL").unwrap(); - let token = env::var("TOKEN").expect("TOKEN is not set in .env file"); + let token = env::var("PAPERLESS_TOKEN").expect("TOKEN is not set in .env file"); // Create HeaderMap and add Authorization header let mut headers = HeaderMap::new(); let header_value = HeaderValue::from_str(&format!("Token {}", token)).unwrap();