Skip to content

Commit

Permalink
Only install graphite if we have a token (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
topher200 authored Feb 11, 2024
1 parent fcee8b5 commit 73dccab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion start-tmux-and-install-slow-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ set -Eeuox pipefail
# configure graphite
# these are JSON because we don't have a `graphite` binary yet
echo '{"trunk": "master"}' >.git/.graphite_repo_config
echo "{\"authToken\": \"$GRAPHITE_AUTH_TOKEN\", \"branchPrefix\": \"topher/\", \"submitIncludeCommitMessages\": true}" >~/.graphite_user_config
if [[ -z "${GRAPHITE_AUTH_TOKEN:-}" ]]; then
echo 'GRAPHITE_AUTH_TOKEN not set, skipping graphite config'
else
echo 'GRAPHITE_AUTH_TOKEN set, configuring graphite'
echo "{\"authToken\": \"$GRAPHITE_AUTH_TOKEN\", \"branchPrefix\": \"topher/\", \"submitIncludeCommitMessages\": true}" >~/.graphite_user_config
fi

# configure docker hub
if [[ -z "${DOCKER_HUB_USERNAME:-}" ]] || [[ -z "${DOCKER_HUB_PAT:-}" ]]; then
Expand Down

0 comments on commit 73dccab

Please sign in to comment.