File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -134,14 +134,14 @@ if [[ "${BUILDKITE_AGENT_ENABLE_GIT_MIRRORS_EXPERIMENT}" == "true" ]] ; then
134
134
BUILDKITE_AGENT_EXPERIMENTS+=" ,git-mirrors"
135
135
fi
136
136
137
+ BUILDKITE_AGENT_GIT_MIRRORS_PATH=" /var/lib/buildkite-agent/git-mirrors"
138
+
137
139
if [ " ${BUILDKITE_ENABLE_INSTANCE_STORAGE:- false} " == " true" ]
138
140
then
139
- BUILDKITE_AGENT_GIT_MIRRORS_PATH=" /mnt/ephemeral/git-mirrors"
140
-
141
- mkdir -p " ${BUILDKITE_AGENT_GIT_MIRRORS_PATH} "
142
- chown buildkite-agent: " ${BUILDKITE_AGENT_GIT_MIRRORS_PATH} "
143
- else
144
- BUILDKITE_AGENT_GIT_MIRRORS_PATH=" /var/lib/buildkite-agent/git-mirrors"
141
+ EPHEMERAL_GIT_MIRRORS_PATH=" /mnt/ephemeral/git-mirrors"
142
+ mkdir -p " ${EPHEMERAL_GIT_MIRRORS_PATH} "
143
+ mount -o bind " ${EPHEMERAL_GIT_MIRRORS_PATH} " " ${BUILDKITE_AGENT_GIT_MIRRORS_PATH} "
144
+ echo " ${EPHEMERAL_GIT_MIRRORS_PATH} ${BUILDKITE_AGENT_GIT_MIRRORS_PATH} none defaults,bind 0 0" >> /etc/fstab
145
145
fi
146
146
fi
147
147
You can’t perform that action at this time.
0 commit comments