Skip to content

Commit d397166

Browse files
committed
Store git-mirrors on instance storage
1 parent 8b9e9b3 commit d397166

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packer/linux/conf/bin/bk-install-elastic-stack.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,13 @@ if [[ "${BUILDKITE_AGENT_ENABLE_GIT_MIRRORS_EXPERIMENT}" == "true" ]] ; then
131131
else
132132
BUILDKITE_AGENT_EXPERIMENTS+=",git-mirrors"
133133
fi
134-
BUILDKITE_AGENT_GIT_MIRRORS_PATH="/var/lib/buildkite-agent/git-mirrors"
134+
135+
if [ "${BUILDKITE_ENABLE_INSTANCE_STORAGE:-false}" == "true" ]
136+
then
137+
BUILDKITE_AGENT_GIT_MIRRORS_PATH="/mnt/ephemeral/git-mirrors"
138+
else
139+
BUILDKITE_AGENT_GIT_MIRRORS_PATH="/var/lib/buildkite-agent/git-mirrors"
140+
fi
135141
else
136142
BUILDKITE_AGENT_GIT_MIRRORS_PATH=""
137143
fi

0 commit comments

Comments
 (0)