init
This commit is contained in:
		
							parent
							
								
									bd71b6575e
								
							
						
					
					
						commit
						3b72dbba0c
					
				@ -60,7 +60,7 @@ spec:
 | 
				
			|||||||
    - name: gitInitImage
 | 
					    - name: gitInitImage
 | 
				
			||||||
      description: The image providing the git-init binary that this Task runs.
 | 
					      description: The image providing the git-init binary that this Task runs.
 | 
				
			||||||
      type: string
 | 
					      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
 | 
					    - name: userHome
 | 
				
			||||||
      description: |
 | 
					      description: |
 | 
				
			||||||
        Absolute path to the user's home directory.
 | 
					        Absolute path to the user's home directory.
 | 
				
			||||||
@ -112,19 +112,6 @@ spec:
 | 
				
			|||||||
          set -x
 | 
					          set -x
 | 
				
			||||||
        fi
 | 
					        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
 | 
					        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}/.git-credentials" "${PARAM_USER_HOME}/.git-credentials"
 | 
				
			||||||
          sudo cp "${WORKSPACE_BASIC_AUTH_DIRECTORY_PATH}/.gitconfig" "${PARAM_USER_HOME}/.gitconfig"
 | 
					          sudo cp "${WORKSPACE_BASIC_AUTH_DIRECTORY_PATH}/.gitconfig" "${PARAM_USER_HOME}/.gitconfig"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user