Skip to content

Commit

Permalink
ensure we have AWS creds
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad committed Sep 30, 2024
1 parent f57b566 commit c088f2e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/earthly-ci
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env bash
# A wrapper for Earthly that is meant to catch signs of known intermittent failures and continue.
# The silver lining is if Earthly does crash, the cache can pick up the build.
# env vars required:
# - AWS_ACCESS_KEY_ID
# - AWS_SECRET_ACCESS_KEY
set -eu -o pipefail

MAX_WAIT_TIME=300 # Maximum wait time in seconds
Expand Down Expand Up @@ -39,8 +42,8 @@ function run_earthly() {
# We abuse secrets with regular config that we don't want to alter the cache (see https://docs.earthly.dev/docs/guides/secrets)
# we do not run with minio in CI
earthly --logstream-debug-manifest-file $EARTHLY_RUN_STATS_JSON \
--secret AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:-} \
--secret AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:-} \
--secret AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
--secret AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
--secret S3_BUILD_CACHE_MINIO_URL="" \
--secret S3_BUILD_CACHE_UPLOAD="true" \
--secret S3_BUILD_CACHE_DOWNLOAD="true" \
Expand Down

0 comments on commit c088f2e

Please sign in to comment.