From 6e6f315ae0e94905f110f7db91f2ad63b147063b Mon Sep 17 00:00:00 2001 From: monlor Date: Fri, 6 Mar 2020 00:28:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9gitlab-ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ecb45c4..5e324e8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,18 +1,10 @@ -stages: - - pack - - deploy +image: lholota/bash-git -pack: - stage: pack - only: - - dev - script: - - bash ./tools/gitsync.sh pack +stages: + - deploy deploy: stage: deploy - only: - - dev script: - - bash ./tools/gitsync.sh deploy mbfiles dev ${GL_REF}/monlor/mbfiles.git - \ No newline at end of file + - bash -e ./tools/gitsync.sh pack + - bash -e ./tools/gitsync.sh deploy mbfiles ${CI_COMMIT_REF_NAME} ${GL_REF}/monlor/mbfiles.git