Browse Source

demo项目进版

master
clong 1 year ago
parent
commit
a74e739a74
4 changed files with 10 additions and 10 deletions
  1. +7
    -7
      .drone.yml
  2. +1
    -1
      README.md
  3. +1
    -1
      VERSION
  4. +1
    -1
      version_control/APP_VERSION

+ 7
- 7
.drone.yml View File

@ -25,7 +25,7 @@ steps:
branch: branch:
# - develop # - develop
# - master # - master
- release/S2
- release/S3
event: event:
- push - push
### 应用版本控制:检查版本文件,若不存在则自动创建,并自动递增版本号 ### 应用版本控制:检查版本文件,若不存在则自动创建,并自动递增版本号
@ -38,14 +38,14 @@ steps:
- 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/S2 vc
- make branch=release/S3 vc
# - make branch=master vc # - make branch=master vc
when: when:
status: [ success ] status: [ success ]
branch: branch:
# - develop # - develop
# - master # - master
- release/S2
- release/S3
event: event:
- push - push
### 打包镜像并推送到镜像仓库 ### 打包镜像并推送到镜像仓库
@ -76,27 +76,27 @@ steps:
branch: branch:
# - develop # - develop
# - master # - master
- release/S2
- release/S3
### 应用版本控制:提交版本文件的修改记录,并为代码分支创建版本号标签 ### 应用版本控制:提交版本文件的修改记录,并为代码分支创建版本号标签
- 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/S2 to_git
- make branch=release/S3 to_git
when: when:
status: [ success ] status: [ success ]
branch: branch:
# - develop # - develop
# - master # - master
- release/S2
- release/S3
event: event:
- push - push
trigger: trigger:
branch: branch:
# - develop # - develop
# - master # - master
- release/S2
- release/S3
event: event:
- push - push
volumes: volumes:


+ 1
- 1
README.md View File

@ -1,3 +1,3 @@
# demo-athenaopt # demo-athenaopt
测试 release/S2 打包
测试 release/S3 打包

+ 1
- 1
VERSION View File

@ -1 +1 @@
1.0.2
1.0.3

+ 1
- 1
version_control/APP_VERSION View File

@ -1 +1 @@
1.0.2
1.0.3

Loading…
Cancel
Save