diff --git a/.github/workflows/test-build-publish.yaml b/.github/workflows/test-build-publish.yaml index da401e56f8..3b29ef25fe 100644 --- a/.github/workflows/test-build-publish.yaml +++ b/.github/workflows/test-build-publish.yaml @@ -14,6 +14,8 @@ concurrency: ${{ github.workflow }}-${{ github.ref }} env: GITHUB_CR: ghcr.io + PKU_CR: mirrors.eecser.com + PKU_PROJECT_NAME: pkuhpc-icode # ALIYUN_CR: registry.cn-hangzhou.aliyuncs.com # ALIYUN_PROJECT_NAME: scow @@ -123,6 +125,7 @@ jobs: name: scow-cli-arm64 path: apps/cli/exe/cli-arm64 + build-images: needs: test-version-packages runs-on: ubuntu-latest @@ -158,12 +161,20 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Log in to the PKU registry + uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc + with: + registry: ${{ env.PKU_CR }} + username: ${{ secrets.PKUREGISTRY_USERNAME }} + password: ${{ secrets.PKUREGISTRY_PASSWORD }} + - name: Docker meta id: meta uses: docker/metadata-action@v4 with: images: | ${{ env.GITHUB_CR }}/${{ github.repository }}/${{ matrix.name }} + ${{ env.PKU_CR }}/${{ env.PKU_PROJECT_NAME }}/${{ matrix.name }} - name: Build and push Docker image uses: docker/build-push-action@v4