Commit 9fc6f1ed authored by mingyard's avatar mingyard

feat:dev gitlab ci

parent c5388658
image: docker:stable image: docker:stable
variables: variables:
IMAGE_NAME: "work-server" IMAGE_NAME: "work-server"
IMAGE_TAG: "prod-${CI_PIPELINE_IID}" IMAGE_TAG: "dev-${CI_PIPELINE_IID}"
TITLE: "translation-server正式环境更新" TITLE: "translation-server测试环境更新"
CONTENT: ${CI_COMMIT_TITLE// /-} CONTENT: ${CI_COMMIT_TITLE// /-}
VIEW_URL: "https://beta.laihua.com" VIEW_URL: "https://beta.laihua.com"
PIPELINES_URL: "https://gitlab.laihua.com/qinmingyuan/translation-server/pipelines" PIPELINES_URL: "https://gitlab.laihua.com/qinmingyuan/translation-server/pipelines"
...@@ -19,7 +19,7 @@ test_job: ...@@ -19,7 +19,7 @@ test_job:
tags: tags:
- admin-api-runner - admin-api-runner
only: only:
- release - dev
script: script:
- echo "开始单元测试..." - echo "开始单元测试..."
- echo "单元测试完成!" - echo "单元测试完成!"
...@@ -29,7 +29,7 @@ docker_job: ...@@ -29,7 +29,7 @@ docker_job:
tags: tags:
- admin-api-runner - admin-api-runner
only: only:
- release - dev
script: script:
- echo "开始docker镜像构建..." - echo "开始docker镜像构建..."
- docker login -u $CN_HUAWEIYUNAK -p $CN_HUAWEIYUNSK swr.cn-south-1.myhuaweicloud.com; - docker login -u $CN_HUAWEIYUNAK -p $CN_HUAWEIYUNSK swr.cn-south-1.myhuaweicloud.com;
...@@ -46,7 +46,7 @@ deploy_job: ...@@ -46,7 +46,7 @@ deploy_job:
tags: tags:
- admin-api-runner - admin-api-runner
only: only:
- release - dev
script: script:
- echo "请在rancher中部署..." - echo "请在rancher中部署..."
dependencies: dependencies:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment