Skip to content

Commit

Permalink
chore(ci/docker): skip sccache if missing aws key
Browse files Browse the repository at this point in the history
Signed-off-by: Luiz Carvalho <[email protected]>
  • Loading branch information
saiintbrisson authored Mar 15, 2024
1 parent 1b123f2 commit 5d51d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ENV PATH=/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbi
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- -y --profile=minimal --default-toolchain=nightly-2024-02-01

RUN if [ -n "$SCCACHE_BUCKET" ]; then \
RUN if [ -n "$AWS_ACCESS_KEY_ID" ]; then \
curl https://github.com/mozilla/sccache/releases/download/v0.7.7/sccache-v0.7.7-x86_64-unknown-linux-musl.tar.gz \
-Lo sccache-v0.7.7-x86_64-unknown-linux-musl.tar.gz && \
tar -xzf sccache-v0.7.7-x86_64-unknown-linux-musl.tar.gz --strip-components=1 \
Expand Down

0 comments on commit 5d51d22

Please sign in to comment.