CI 수정

This commit is contained in:
정훈 변
2024-04-11 11:56:32 +09:00
parent 739f86ebd7
commit 9cb85e3d11

View File

@@ -26,17 +26,15 @@ build:
update:
image: bitnami/git
stage: update
before_script:
- git config --global user.name "sa_8001"
- git config --global user.email "sa_8001@naver.com"
before_script: |
git config --global user.name "ByeonJungHub"
git config --global user.email "sa_8001@naver.com"
DATE=$(date +"%Y-%m-%d | %r")
script: |
DATE=$(date +"%Y-%m-%d / %r")
git clone https://sa_8001:$GITKEY@lab.jhcloud.kr/sa_8001/intermax_yaml.git
cd intermax_yaml/
rm -rf ./bussiness1-chl.yml ./bussiness1-mci.yml ./bussiness1-core.yml
cp bussiness1-chl.template bussiness1-chl.yml
cp bussiness1-mci.template bussiness1-mci.yml
cp bussiness1-core.template bussiness1-core.yml
cp bussiness1-chl.template bussiness1-chl.yml && cp bussiness1-mci.template bussiness1-mci.yml && cp bussiness1-core.template bussiness1-core.yml
sed -i "s/{ver}/$ver/g" bussiness1-chl.yml bussiness1-mci.yml bussiness1-core.yml && sed -i "s/{date}/$DATE/g" bussiness1-chl.yml bussiness1-mci.yml bussiness1-core.yml
git add . && git commit -m "yml update"
git push https://sa_8001:$GITKEY@lab.jhcloud.kr/sa_8001/intermax_yaml.git