Skip to content

Commit

Permalink
ci: 增加 阿里云镜像源
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoMeiYouRen committed Jun 7, 2024
1 parent d510cad commit f75b3e1
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,32 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker Login
uses: docker/login-action@v3.1.0
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to Alibaba Cloud Container Registry
uses: docker/login-action@v3
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ALIYUN_USERNAME }}
password: ${{ secrets.ALIYUN_PASSWORD }}
- name: Extract Docker metadata
id: metadata
uses: docker/metadata-action@v5
with:
# 发布到 hub.docker.com 和 ghcr.io
# 发布到 docker.io / ghcr.io / registry.cn-hangzhou.aliyuncs.com
images: |
${{ env.REPO }}
ghcr.io/${{ github.repository }}
registry.cn-hangzhou.aliyuncs.com/${{ github.repository }}
tags: |
type=raw,value=latest,enable=true
type=raw,value={{date 'YYYY-MM-DD' tz='Asia/Shanghai'}},enable=true
Expand Down

0 comments on commit f75b3e1

Please sign in to comment.