|
@ -7,7 +7,7 @@ steps: |
|
|
image: maven:3.5.3-jdk-8 |
|
|
image: maven:3.5.3-jdk-8 |
|
|
environment: |
|
|
environment: |
|
|
# 应用专案名称(需手动修改) |
|
|
# 应用专案名称(需手动修改) |
|
|
backendName: app-code_backend |
|
|
|
|
|
|
|
|
backendName: demo-athenaopt_backend |
|
|
# 平台API版本号(需手动修改) |
|
|
# 平台API版本号(需手动修改) |
|
|
apiVersion: 5.2.0.1005 |
|
|
apiVersion: 5.2.0.1005 |
|
|
commands: |
|
|
commands: |
|
@ -25,7 +25,7 @@ steps: |
|
|
branch: |
|
|
branch: |
|
|
# - develop |
|
|
# - develop |
|
|
# - master |
|
|
# - master |
|
|
- release/S1 |
|
|
|
|
|
|
|
|
- develop |
|
|
event: |
|
|
event: |
|
|
- push |
|
|
- push |
|
|
### 应用版本控制:检查版本文件,若不存在则自动创建,并自动递增版本号 |
|
|
### 应用版本控制:检查版本文件,若不存在则自动创建,并自动递增版本号 |
|
@ -33,19 +33,19 @@ steps: |
|
|
image: registry.digiwincloud.com.cn/base/base_vc |
|
|
image: registry.digiwincloud.com.cn/base/base_vc |
|
|
environment: |
|
|
environment: |
|
|
# 应用专案名称(需手动修改) |
|
|
# 应用专案名称(需手动修改) |
|
|
backendName: app-code_backend |
|
|
|
|
|
|
|
|
backendName: demo-athenaopt_backend |
|
|
commands: |
|
|
commands: |
|
|
- sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories |
|
|
- sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories |
|
|
- apk add tree --no-cache |
|
|
- apk add tree --no-cache |
|
|
- tree ./$backendName |
|
|
- tree ./$backendName |
|
|
- make branch=release/S1 vc |
|
|
|
|
|
|
|
|
- make branch=develop vc |
|
|
# - make branch=master vc |
|
|
# - make branch=master vc |
|
|
when: |
|
|
when: |
|
|
status: [ success ] |
|
|
status: [ success ] |
|
|
branch: |
|
|
branch: |
|
|
# - develop |
|
|
# - develop |
|
|
# - master |
|
|
# - master |
|
|
- release/S1 |
|
|
|
|
|
|
|
|
- develop |
|
|
event: |
|
|
event: |
|
|
- push |
|
|
- push |
|
|
### 打包镜像并推送到镜像仓库 |
|
|
### 打包镜像并推送到镜像仓库 |
|
@ -53,7 +53,7 @@ steps: |
|
|
image: plugins/docker:20.10.9 |
|
|
image: plugins/docker:20.10.9 |
|
|
environment: |
|
|
environment: |
|
|
# 应用专案名称(需手动修改) |
|
|
# 应用专案名称(需手动修改) |
|
|
backendName: app-code_backend |
|
|
|
|
|
|
|
|
backendName: demo-athenaopt_backend |
|
|
## Docker 插件的设置 |
|
|
## Docker 插件的设置 |
|
|
settings: |
|
|
settings: |
|
|
insecure: true |
|
|
insecure: true |
|
@ -64,7 +64,7 @@ steps: |
|
|
# 注意:此处不支持用取值符号获取参数,需要手动修改。${appId} 表示应用ID,${projectName} 表示仓库项目名称,${platformVersion} 表示平台版本号 |
|
|
# 注意:此处不支持用取值符号获取参数,需要手动修改。${appId} 表示应用ID,${projectName} 表示仓库项目名称,${platformVersion} 表示平台版本号 |
|
|
# 例如:registry.digiwincloud.com.cn/sampleapp1/sampleapp1backend-5.0.1 注意APPID和backend中间没有下划线 |
|
|
# 例如:registry.digiwincloud.com.cn/sampleapp1/sampleapp1backend-5.0.1 注意APPID和backend中间没有下划线 |
|
|
# repo: registry.digiwincloud.com.cn/${projectName}/${appId}backend-${platformVersion} |
|
|
# repo: registry.digiwincloud.com.cn/${projectName}/${appId}backend-${platformVersion} |
|
|
repo: registry.digiwincloud.com.cn/athenaopt/app-codebackend-5.2.0 |
|
|
|
|
|
|
|
|
repo: registry.digiwincloud.com.cn/athenaopt/demo-athenaoptbackend-5.2.0 |
|
|
registry: registry.digiwincloud.com.cn |
|
|
registry: registry.digiwincloud.com.cn |
|
|
experimental: true |
|
|
experimental: true |
|
|
# 打包镜像时会用到的 Dockerfile 文件(此处使用自定义 Dockerfile 文件名,避免跟其他 Dockerfile 冲突) |
|
|
# 打包镜像时会用到的 Dockerfile 文件(此处使用自定义 Dockerfile 文件名,避免跟其他 Dockerfile 冲突) |
|
@ -76,27 +76,27 @@ steps: |
|
|
branch: |
|
|
branch: |
|
|
# - develop |
|
|
# - develop |
|
|
# - master |
|
|
# - master |
|
|
- release/S1 |
|
|
|
|
|
|
|
|
- develop |
|
|
### 应用版本控制:提交版本文件的修改记录,并为代码分支创建版本号标签 |
|
|
### 应用版本控制:提交版本文件的修改记录,并为代码分支创建版本号标签 |
|
|
- name: Upload Version |
|
|
- name: Upload Version |
|
|
image: registry.digiwincloud.com.cn/base/base_vc |
|
|
image: registry.digiwincloud.com.cn/base/base_vc |
|
|
commands: |
|
|
commands: |
|
|
# - make branch=develop to_git |
|
|
# - make branch=develop to_git |
|
|
# - make branch=master to_git |
|
|
# - make branch=master to_git |
|
|
- make branch=release/S1 to_git |
|
|
|
|
|
|
|
|
- make branch=develop to_git |
|
|
when: |
|
|
when: |
|
|
status: [ success ] |
|
|
status: [ success ] |
|
|
branch: |
|
|
branch: |
|
|
# - develop |
|
|
# - develop |
|
|
# - master |
|
|
# - master |
|
|
- release/S1 |
|
|
|
|
|
|
|
|
- develop |
|
|
event: |
|
|
event: |
|
|
- push |
|
|
- push |
|
|
trigger: |
|
|
trigger: |
|
|
branch: |
|
|
branch: |
|
|
# - develop |
|
|
# - develop |
|
|
# - master |
|
|
# - master |
|
|
- release/S1 |
|
|
|
|
|
|
|
|
- develop |
|
|
event: |
|
|
event: |
|
|
- push |
|
|
- push |
|
|
volumes: |
|
|
volumes: |
|
|