Skip to content

Commit 5c8e906

Browse files
committed
Remove pushd
Signed-off-by: Dong Hyuk Chang <donghyukc@nvidia.com>
1 parent 7977d01 commit 5c8e906

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

docker/Dockerfile.ci

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,15 @@ WORKDIR /src/Megatron-LM
3939
RUN --mount=type=secret,id=CI_JOB_TOKEN,target=/run/secrets/CI_JOB_TOKEN \
4040
CI_JOB_TOKEN=$(cat /run/secrets/CI_JOB_TOKEN) && \
4141
git clone ${MCORE_HOST}:${CI_JOB_TOKEN}@${MCORE_REPO} . && \
42-
pushd Megatron-LM && \
43-
git pull && \
44-
git fetch origin $MCORE_COMMIT && \
45-
git checkout FETCH_HEAD && \
46-
echo "Container built with Megatron-LM commit hash: $MCORE_COMMIT" && \
47-
rm -rf .git && \
48-
rm -rf ~/.netrc && \
49-
mkdir -p /tmp/Megatron-LM/megatron/core/ && \
50-
cp pyproject.toml /tmp/Megatron-LM/ && \
51-
cp megatron/core/__init__.py megatron/core/package_info.py /tmp/Megatron-LM/megatron/core/ && \
52-
popd && \
42+
git pull && \
43+
git fetch origin $MCORE_COMMIT && \
44+
git checkout FETCH_HEAD && \
45+
echo "Container built with Megatron-LM commit hash: $MCORE_COMMIT" && \
46+
rm -rf .git && \
47+
rm -rf ~/.netrc && \
48+
mkdir -p /tmp/Megatron-LM/megatron/core/ && \
49+
cp pyproject.toml /tmp/Megatron-LM/ && \
50+
cp megatron/core/__init__.py megatron/core/package_info.py /tmp/Megatron-LM/megatron/core/ && \
5351

5452
FROM mbridge_base as mbridge_submodule_mcore
5553

0 commit comments

Comments
 (0)