增加开发分支自动化构建

This commit is contained in:
chishin 2024-01-19 11:42:12 +08:00
parent c3ebd360d9
commit fa196d91b3

View File

@ -4,6 +4,7 @@ on:
push: push:
branches: branches:
- 'develop-zh' - 'develop-zh'
- 'zh-v[1-9].[0-9]+.[0-9]+'
release: release:
types: [published] types: [published]
jobs: jobs:
@ -20,7 +21,7 @@ jobs:
- name: 添加BuildTag环境变量push - name: 添加BuildTag环境变量push
if: ${{ github.event_name == 'push'}} if: ${{ github.event_name == 'push'}}
run: | run: |
echo "BUILD_TAG=-t ${BUILD_IMAGE}:${BUILD_VERSION} -t ${BUILD_IMAGE}:dev" >> $GITHUB_ENV echo "BUILD_TAG=-t ${BUILD_IMAGE}:dev-${BUILD_VERSION} -t ${BUILD_IMAGE}:dev" >> $GITHUB_ENV
- name: 添加BuildTag环境变量release - name: 添加BuildTag环境变量release
if: ${{ github.event_name == 'release'}} if: ${{ github.event_name == 'release'}}
run: | run: |