Skip to content

Commit

Permalink
fix(deployment): update rust docker image and attempt to fix workflow…
Browse files Browse the repository at this point in the history
…, update env variables
  • Loading branch information
Björn Urban committed Feb 27, 2024
1 parent a228a71 commit e364833
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.67
FROM rust:1.76

WORKDIR /usr/doclytics
COPY . .
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ async fn generate_response(
}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
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();
Expand Down

0 comments on commit e364833

Please sign in to comment.