From f098068cc4253a65748a0483a0b42f7b05392f0b Mon Sep 17 00:00:00 2001 From: AirryCo Date: Sat, 12 Oct 2024 14:34:05 +0800 Subject: [PATCH] add registry: Aliyun(registry.cn-shenzhen.aliyuncs.com) --- .github/workflows/build-nightly-cron.yaml | 10 ++++++++++ .github/workflows/build-release-cron.yaml | 9 +++++++++ 2 files changed, 19 insertions(+) diff --git a/.github/workflows/build-nightly-cron.yaml b/.github/workflows/build-nightly-cron.yaml index 5267fb9..bb6fc60 100644 --- a/.github/workflows/build-nightly-cron.yaml +++ b/.github/workflows/build-nightly-cron.yaml @@ -316,6 +316,7 @@ jobs: images: | ${{ env.DOCKERHUB_USER }}/${{ env.DOCKERHUB_REPOSITORY }} ghcr.io/${{ env.GHCR_USER }}/${{ env.GHCR_REPOSITORY }} + registry.cn-shenzhen.aliyuncs.com/spt-server/spt-server tags: | type=raw,value=nightly - name: Set up QEMU @@ -337,6 +338,15 @@ jobs: username: ${{ env.GHCR_USER }} password: ${{ secrets.GHCR_TOKEN }} + # Aliyun Registry + - name: Login to Aliyun Registry + uses: docker/login-action@v3 + with: + registry: registry.cn-shenzhen.aliyuncs.com + username: ${{ secrets.ALIYUN_REGISTRY_USER }} + password: ${{ secrets.ALIYUN_REGISTRY_TOKEN }} + + - name: Build and Push id: build-and-push uses: docker/build-push-action@v6 diff --git a/.github/workflows/build-release-cron.yaml b/.github/workflows/build-release-cron.yaml index 646fc61..ca99e0f 100644 --- a/.github/workflows/build-release-cron.yaml +++ b/.github/workflows/build-release-cron.yaml @@ -316,6 +316,7 @@ jobs: images: | ${{ env.DOCKERHUB_USER }}/${{ env.DOCKERHUB_REPOSITORY }} ghcr.io/${{ env.GHCR_USER }}/${{ env.GHCR_REPOSITORY }} + registry.cn-shenzhen.aliyuncs.com/spt-server/spt-server tags: | type=semver,pattern={{version}},value=${{ needs.prepare.outputs.TARGET_TAG }} type=semver,pattern={{major}}.{{minor}},value=${{ needs.prepare.outputs.TARGET_TAG }} @@ -327,6 +328,7 @@ jobs: images: | ${{ env.DOCKERHUB_USER }}/${{ env.DOCKERHUB_REPOSITORY }} ghcr.io/${{ env.GHCR_USER }}/${{ env.GHCR_REPOSITORY }} + registry.cn-shenzhen.aliyuncs.com/spt-server/spt-server tags: | type=semver,pattern={{version}},value=${{ needs.prepare.outputs.TARGET_TAG }} type=semver,pattern={{major}}.{{minor}},value=${{ needs.prepare.outputs.TARGET_TAG }} @@ -350,6 +352,13 @@ jobs: registry: ghcr.io username: ${{ env.GHCR_USER }} password: ${{ secrets.GHCR_TOKEN }} + # Aliyun Registry + - name: Login to Aliyun Registry + uses: docker/login-action@v3 + with: + registry: registry.cn-shenzhen.aliyuncs.com + username: ${{ secrets.ALIYUN_REGISTRY_USER }} + password: ${{ secrets.ALIYUN_REGISTRY_TOKEN }} - name: Build and Push For BEM if: ${{ contains(needs.prepare.outputs.TARGET_TAG, 'BEM') }}