Skip to content

Commit

Permalink
feat(ci): replace GHCR to Aliyun registry
Browse files Browse the repository at this point in the history
  • Loading branch information
mikucat0309 committed Feb 7, 2024
1 parent b69313a commit 5bc50a9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
environment: release
permissions:
contents: read
packages: write
Expand All @@ -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}}
Expand All @@ -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:
Expand Down

0 comments on commit 5bc50a9

Please sign in to comment.