fix(ci): with secret

This commit is contained in:
Kasper Juul Hermansen 2023-02-18 17:03:37 +01:00
parent f42da8416a
commit 25fb9d4f24
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
2 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,8 @@ on:
pull_request: pull_request:
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
AWS_ACCESS_KEY_ID: ${{ AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ AWS_SECRET_ACCESS_KEY }}
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -137,6 +137,14 @@ fn get_dependencies(client: Arc<Query>) -> Container {
None, None,
) )
.with_env_variable("RUSTC_WRAPPER".into(), "/usr/local/bin/sccache".into()) .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_BUCKET".into(), "sccache".into())
.with_env_variable("SCCACHE_REGION".into(), "auto".into()) .with_env_variable("SCCACHE_REGION".into(), "auto".into())
.with_env_variable( .with_env_variable(