Skip to content

Commit

Permalink
Merge pull request #2 from kkangert/add_aliyun_image
Browse files Browse the repository at this point in the history
新增 阿里云镜像仓库推送
  • Loading branch information
kkangert authored Jul 29, 2024
2 parents 54d6d47 + 1c59126 commit 71e0d3a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Aliyun Container Registry
uses: docker/login-action@v3
with:
registry: registry.cn-beijing.aliyuncs.com
username: ${{ secrets.ALIYUN_USERNAME }}
password: ${{ secrets.ALIYUN_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v6
id: build_push_dockerhub
Expand All @@ -43,6 +50,9 @@ jobs:
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }}
registry.cn-beijing.aliyuncs.com/${{ github.repository }}:latest
registry.cn-beijing.aliyuncs.com/${{ github.repository }}:${{ github.event.release.tag_name }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
Expand Down

0 comments on commit 71e0d3a

Please sign in to comment.