Skip to content

Commit bb71c0d

Browse files
committed
Remove env usage to get bucket names in scripts
1 parent 7e57230 commit bb71c0d

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

scripts/build-search-index

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# Rebuilds the search index, then uploads it to s3
33
# Usage:
4-
# S3_INDEX_BUCKET=baz rebuild-search-index releases/clojars-web-current.jar
4+
# rebuild-search-index releases/clojars-web-current.jar
55

66
set -e
77

@@ -18,5 +18,4 @@ index_path=$(grep "index-path:" /tmp/index-out.txt | sed -n 's/index-path: \(.*\
1818
# upload the new index the s3 bucket
1919
tar czf /tmp/artifact-index.tgz "$index_path"
2020

21-
aws s3 cp --no-progress --content-type 'application/gzip' /tmp/artifact-index.tgz "s3://${S3_INDEX_BUCKET}/"
22-
21+
aws s3 cp --no-progress --content-type 'application/gzip' /tmp/artifact-index.tgz "s3://clojars-artifact-index/"

scripts/combine-cdn-logs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ if [ -z "$DATE" ]; then
1111
DATE=$(date --date='1 day ago' +%Y%m%d)
1212
fi
1313

14+
S3_LOG_BUCKET=clojars-fastly-logs
15+
1416
java -cp "$clojars_jar" clojure.main -m clojars.tools.combine-cdn-logs \
1517
"$S3_LOG_BUCKET" "$DATE" "$output_file"
1618

scripts/maven-index-repo

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# Usage:
3-
# S3_REPO_BUCKET=clojars-repo-production maven-index-repo releases/clojars-web-current.jar indexer/indexer-core-4.1.2-cli.jar indexer/index-4.1.2 repo
3+
# maven-index-repo releases/clojars-web-current.jar indexer/indexer-core-4.1.2-cli.jar indexer/index-4.1.2 repo
44

55
set -e
66

@@ -9,6 +9,8 @@ indexer_jar=$2
99
index_dir=$3
1010
repo=$4
1111

12+
S3_REPO_BUCKET=clojars-repo-production
13+
1214
# synchronize the repo bucket locally
1315
# we only need the existing index, the poms, and maven-metadata.xml files
1416
aws s3 sync "s3://$S3_REPO_BUCKET/" "$repo" \

scripts/update-stats

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ cdn_logfile=/tmp/cdn-access-yesterday.log
1818
# generate the combined cdn stats first
1919
"$dir"/combine-cdn-logs "$clojars_jar" "$cdn_logfile" "$date"
2020

21+
S3_STATS_BUCKET=clojars-stats-production
22+
2123
downloads_date=/tmp/downloads-$date.edn
2224
downloads_all_old=/tmp/all-old.edn
2325
downloads_all_new=/tmp/all-new.edn

0 commit comments

Comments
 (0)