Skip to content

Commit

Permalink
test kustomize deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
taein authored and taein committed Oct 29, 2023
1 parent 1d14f3e commit d009208
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/dp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,8 @@ jobs:
# Docker 이미지 URL 설정
IMAGE_URL="${{ env.ECR_REPO_URL }}:catcher-service"
# kustomization.yaml 파일 업데이트
kustomize edit set image catcher-service=$IMAGE_URL
# deployment.yaml 파일 내 이미지 동적으로 설정
sed -i 's|image: "catcher-service:latest"|image: "'"$IMAGE_URL"'"|' ./$KUSTOMIZE_PATH/deployment.yaml
sed -i 's|image: "catcher-service:latest"|image: "'"$IMAGE_URL"'"|' ./$KUSTOMIZE_PATH/patch-deployment.yaml
# Kustomize를 사용하여 배포
kustomize build ./$KUSTOMIZE_PATH | kubectl apply -f -
Expand Down

0 comments on commit d009208

Please sign in to comment.