mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-27 23:51:47 +00:00
feat(ci): replace GHCR with Aliyun registry
This commit is contained in:
parent
b69313a07d
commit
57385e52be
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user