ci: 测试环境改由 iteration/8-11 分支部署,对接后端 Iteration/8-11
Some checks failed
构建并部署前端到测试环境 / build-and-deploy (push) Failing after 56m12s
Some checks failed
构建并部署前端到测试环境 / build-and-deploy (push) Failing after 56m12s
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
name: 构建并部署前端到生产环境
|
||||
name: 构建并部署前端到测试环境
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- iteration/august
|
||||
- iteration/8-11
|
||||
- dev
|
||||
- test
|
||||
|
||||
@@ -27,7 +27,7 @@ jobs:
|
||||
- name: 设置镜像标签
|
||||
id: tag
|
||||
run: |
|
||||
if [ "${{ github.ref }}" = "refs/heads/iteration/august" ]; then
|
||||
if [ "${{ github.ref }}" = "refs/heads/iteration/8-11" ]; then
|
||||
echo "tag=latest" >> $GITHUB_OUTPUT
|
||||
elif [ "${{ github.ref }}" = "refs/heads/dev" ]; then
|
||||
echo "tag=dev" >> $GITHUB_OUTPUT
|
||||
@@ -51,8 +51,8 @@ jobs:
|
||||
docker push ${{ env.IMAGE_NAME }}:${{ steps.tag.outputs.tag }}
|
||||
docker push ${{ env.IMAGE_NAME }}:${{ github.sha }}
|
||||
|
||||
- name: 部署到本地(仅 iteration/august 分支)
|
||||
if: github.ref == 'refs/heads/iteration/august'
|
||||
- name: 部署到测试环境(仅 iteration/8-11 分支)
|
||||
if: github.ref == 'refs/heads/iteration/8-11'
|
||||
run: |
|
||||
mkdir -p ${{ env.DEPLOY_DIR }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user