5858 with :
5959 installer-parallel : true
6060
61- - name : Build backend and push
62- id : docker_build_backend
61+ - name : Build backend amd64 and push
62+ id : docker_build_backend_amd
6363 uses : docker/build-push-action@v2
6464 with :
6565 # backend 的context目录
@@ -68,22 +68,41 @@ jobs:
6868 # 是否 docker push
6969 push : true
7070 # docker build arg, 注入 APP_NAME/APP_VERSION
71- platforms : linux/amd64,linux/arm64
71+ platforms : linux/amd64
7272 build-args : |
7373 APP_NAME="bisheng-backend"
7474 APP_VERSION=${{ steps.get_version.outputs.VERSION }}
75+ PANDOC_ARCH=amd64
7576 # 生成两个 docker tag: ${APP_VERSION} 和 latest
7677 tags : |
7778 ${{ env.DOCKERHUB_REPO }}bisheng-backend:${{ steps.get_version.outputs.VERSION }}
78- # 构建 Docker frontend 并推送到 Docker hub
79+ - name : Build backend arm64 and push
80+ id : docker_build_backend_arm
81+ uses : docker/build-push-action@v2
82+ with :
83+ # backend 的context目录
84+ context : " ./src/backend/"
85+ file : ./src/backend/base.Dockerfile
86+ # 是否 docker push
87+ push : true
88+ # docker build arg, 注入 APP_NAME/APP_VERSION
89+ platforms : linux/arm64
90+ build-args : |
91+ APP_NAME="bisheng-backend"
92+ APP_VERSION=${{ steps.get_version.outputs.VERSION }}
93+ PANDOC_ARCH=arm64
94+ # 生成两个 docker tag: ${APP_VERSION} 和 latest
95+ tags : |
96+ ${{ env.DOCKERHUB_REPO }}bisheng-backend:${{ steps.get_version.outputs.VERSION }}
97+ # 获取提交信息
7998 - name : Process git message
8099 id : process_message
81100 run : |
82101 value=$(echo "${{ github.event.head_commit.message }}" | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/%0A/g')
83102 value=$(echo "${value}" | sed -e ':a' -e 'N' -e '$!ba' -e 's/\r/%0A/g')
84103 echo "message=${value}" >> $GITHUB_ENV
85104 shell : bash
86-
105+ # 飞书通知
87106 - name : notify feishu
88107 uses : fjogeleit/http-request-action@v1
89108 with :
0 commit comments