This commit is contained in:
병준 박 2025-04-09 04:40:37 +00:00
parent bd71b6575e
commit 3b72dbba0c

View File

@ -60,7 +60,7 @@ spec:
- name: gitInitImage
description: The image providing the git-init binary that this Task runs.
type: string
default: "alpine/git:2.47.2"
default: "gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:v0.40.2"
- name: userHome
description: |
Absolute path to the user's home directory.
@ -112,19 +112,6 @@ spec:
set -x
fi
PARAM_USER_HOME="/git"
echo "_____${PARAM_USER_HOME}"
# 디렉토리가 존재하는지 확인하고, 없으면 생성
if [ ! -d "${PARAM_USER_HOME}" ]; then
mkdir -p "${PARAM_USER_HOME}"
if [ $? -ne 0 ]; then
echo "디렉토리 생성에 실패했습니다." >&2
exit 1
fi
fi
if [ "${WORKSPACE_BASIC_AUTH_DIRECTORY_BOUND}" = "true" ] ; then
sudo cp "${WORKSPACE_BASIC_AUTH_DIRECTORY_PATH}/.git-credentials" "${PARAM_USER_HOME}/.git-credentials"
sudo cp "${WORKSPACE_BASIC_AUTH_DIRECTORY_PATH}/.gitconfig" "${PARAM_USER_HOME}/.gitconfig"