From 5bc50a980ba81b8f3e6f3605fe305e855f02f984 Mon Sep 17 00:00:00 2001 From: Mikucat Date: Wed, 7 Feb 2024 22:04:35 +0800 Subject: [PATCH] feat(ci): replace GHCR to Aliyun registry --- .github/workflows/release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e799a36a..40cb1fb3d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,7 @@ on: jobs: build: runs-on: ubuntu-latest + environment: release permissions: contents: read packages: write @@ -18,7 +19,7 @@ jobs: uses: docker/metadata-action@v5 with: images: | - ghcr.io/qingdaou/oj-backend + registry.cn-hongkong.aliyuncs.com/oj-image/backend tags: | type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} @@ -37,6 +38,13 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Login to Aliyun Container Registry + uses: docker/login-action@v3 + with: + registry: registry.cn-hongkong.aliyuncs.com + username: ${{ secrets.ALIYUN_ACR_USERNAME }} + password: ${{ secrets.ALIYUN_ACR_PASSWORD }} + - name: Build and push uses: docker/build-push-action@v5 with: