提交 1e5ef150 作者: bax

gitlab

上级 9e09eac4
流水线 #6631 已失败 于阶段
in 0 秒
...@@ -4,7 +4,6 @@ stages: ...@@ -4,7 +4,6 @@ stages:
- deploy - deploy
- push - push
variables: variables:
REGION_id: cn-shenzhen REGION_id: cn-shenzhen
REGISTRY: mmc-registry.cn-shenzhen.cr.aliyuncs.com REGISTRY: mmc-registry.cn-shenzhen.cr.aliyuncs.com
...@@ -21,11 +20,16 @@ variables: ...@@ -21,11 +20,16 @@ variables:
ACR_EE_TAG: $CI_COMMIT_SHA ACR_EE_TAG: $CI_COMMIT_SHA
JAVA_VERSION: '8' JAVA_VERSION: '8'
GITLAB_URL: https://oauth2:6wsXz1Kq2biuG9P1NQ6G@git.mmcuav.cn/dzl/cms-ci-test.git GITLAB_URL: https://oauth2:6wsXz1Kq2biuG9P1NQ6G@git.mmcuav.cn/dzl/cms-ci-test.git
GITLAB_REGISTRY: http://git.mmcuav.cn/dzl/cms-ci-test.git
mvn_clean: mvn_clean:
stage: clean stage: clean
before_script:
- git remote add origin "$GITLAB_REGISTRY"
- git config --global user.name "bax" #配置本地仓库用户名信息
- git config --global user.email "bax@example.com" #配置本地仓库邮箱信息
- git pull origin master
script: script:
- echo "清理中ing.........." - echo "清理中ing.........."
- mvn clean -B -Dmaven.test.skip=true --settings /usr/local/maven/conf/settings.xml - mvn clean -B -Dmaven.test.skip=true --settings /usr/local/maven/conf/settings.xml
...@@ -43,10 +47,7 @@ docker_build: ...@@ -43,10 +47,7 @@ docker_build:
cms-argocd-deploy: cms-argocd-deploy:
stage: deploy stage: deploy
before_script:
- git remote set-url origin "$GITLAB_URL"
- git config --global user.name "Administrator" #配置本地仓库用户名信息
- git config --global user.email "admin@example.com" #配置本地仓库邮箱信息
script: script:
- cd kustomization/overlays/dev - cd kustomization/overlays/dev
- kustomize edit set image REGISTRY/NAMESPACE/IMAGE:TAG=$REGISTRY/$NAMESPACE/$IMAGE:$TAG - kustomize edit set image REGISTRY/NAMESPACE/IMAGE:TAG=$REGISTRY/$NAMESPACE/$IMAGE:$TAG
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论