From 25fb9d4f24af8e7d6d81463c19a07a718b8a312a Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 18 Feb 2023 17:03:37 +0100 Subject: [PATCH] fix(ci): with secret --- .github/workflows/ci.yaml | 2 ++ ci/src/main.rs | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fe65392..ad5af35 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,6 +3,8 @@ on: pull_request: env: CARGO_TERM_COLOR: always + AWS_ACCESS_KEY_ID: ${{ AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ AWS_SECRET_ACCESS_KEY }} jobs: deploy: runs-on: ubuntu-latest diff --git a/ci/src/main.rs b/ci/src/main.rs index ab443d2..94e137e 100644 --- a/ci/src/main.rs +++ b/ci/src/main.rs @@ -137,6 +137,14 @@ fn get_dependencies(client: Arc) -> Container { None, ) .with_env_variable("RUSTC_WRAPPER".into(), "/usr/local/bin/sccache".into()) + .with_env_variable( + "AWS_ACCESS_KEY_ID".into(), + std::env::var("AWS_ACCESS_KEY_ID").unwrap_or("".into()), + ) + .with_env_variable( + "AWS_SECRET_ACCESS_KEY".into(), + std::env::var("AWS_SECRET_ACCESS_KEY").unwrap_or("".into()), + ) .with_env_variable("SCCACHE_BUCKET".into(), "sccache".into()) .with_env_variable("SCCACHE_REGION".into(), "auto".into()) .with_env_variable(