mirror of
https://github.com/cna-bootcamp/phonebill.git
synced 2025-12-06 08:06:24 +00:00
Jenkins 파이프라인 sudo 권한 문제 해결 - kustomize를 사용자 디렉토리에 설치하도록 수정
This commit is contained in:
parent
cbdf0faa14
commit
8c8f40a00e
6
deployment/cicd/Jenkinsfile
vendored
6
deployment/cicd/Jenkinsfile
vendored
@ -148,9 +148,11 @@ podTemplate(
|
|||||||
stage('Update Kustomize & Deploy') {
|
stage('Update Kustomize & Deploy') {
|
||||||
container('azure-cli') {
|
container('azure-cli') {
|
||||||
sh """
|
sh """
|
||||||
# Kustomize 설치
|
# Kustomize 설치 (sudo 없이 사용자 디렉토리에 설치)
|
||||||
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
|
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
|
||||||
sudo mv kustomize /usr/local/bin/
|
mkdir -p \$HOME/bin
|
||||||
|
mv kustomize \$HOME/bin/
|
||||||
|
export PATH=\$PATH:\$HOME/bin
|
||||||
|
|
||||||
# 환경별 디렉토리로 이동
|
# 환경별 디렉토리로 이동
|
||||||
cd deployment/cicd/kustomize/overlays/${environment}
|
cd deployment/cicd/kustomize/overlays/${environment}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user