From 9cb85e3d1168fd5353db655886a22bf1c8a5f61e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=ED=9B=88=20=EB=B3=80?= Date: Thu, 11 Apr 2024 11:56:32 +0900 Subject: [PATCH] =?UTF-8?q?=08CI=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2dac66b..cfa353f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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