From 7d6943cb267ab91ff1b5dae6a18d2bab03023e8f Mon Sep 17 00:00:00 2001 From: cyjseagull Date: Thu, 12 Dec 2024 14:24:54 +0800 Subject: [PATCH] try to fix mpc docker build --- .github/workflows/docker.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index a860c35..c594ef8 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -77,6 +77,29 @@ jobs: echo "* Build wedpr-pro-node-service docker: ${NODE_DOCKER_TAG} success" docker push ${NODE_DOCKER_TAG} echo "* Push wedpr-pro-node-service docker: ${NODE_DOCKER_TAG} success" + + # Note: build mpc docker separate for disk space limitation consideration + build-mpc-docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Get branch name + uses: nelonoel/branch-name@v1.0.1 + - name: Fetch tag + run: | + git fetch --tags --force + - name: Login to Docker Hub + uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3 + with: + username: ${{ secrets.DOCKER_FISCOPR_USER }} + password: ${{ secrets.DOCKER_FISCOPR_TOKEN }} + - name: Get git tag + uses: little-core-labs/get-git-tag@v3.0.1 + id: tag_data + with: + tagRegex: (.*) # Optional. Returns specified group text as tag name. Full tag string is returned if regex is not defined. + tagRegexGroup: 1 # Optional. Default is 1. # the wedpr-mpc-service image - name: Build and Push wedpr-mpc-service images run: |