Skip to content

Commit

Permalink
Merge pull request #581 from guguducken/optimize-ci
Browse files Browse the repository at this point in the history
CI: modify cd workflow
  • Loading branch information
guguducken authored Jul 2, 2024
2 parents f9f4b75 + 2ee3ecb commit fee560d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login Tencent Container Registry
uses: docker/login-action@v2
with:
registry: ccr.ccs.tencentyun.com
username: ${{ secrets.TCR_USERNAME }}
password: ${{ secrets.TCR_TOKEN }}

- name: Build && Push
uses: docker/build-push-action@v2
Expand All @@ -80,3 +86,5 @@ jobs:
tags: |
matrixorigin/matrixorigin.io:${{ inputs.branch }}_${{ github.sha }}
matrixorigin/matrixorigin.io:latest
ccr.ccs.tencentyun.com/mo-fronted/matrixorigin.io:${{ inputs.branch }}_${{ github.sha }}
ccr.ccs.tencentyun.com/mo-fronted/matrixorigin.io:latest
8 changes: 7 additions & 1 deletion .github/workflows/pre-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login Tencent Container Registry
uses: docker/login-action@v2
with:
registry: ccr.ccs.tencentyun.com
username: ${{ secrets.TCR_USERNAME }}
password: ${{ secrets.TCR_TOKEN }}

- name: Get current date
id: date
Expand All @@ -60,4 +66,4 @@ jobs:
push: true
tags: |
matrixorigin/matrixorigin.io:${{ steps.date.outputs.date }}
matrixorigin/matrixorigin.io:latest
ccr.ccs.tencentyun.com/mo-fronted/matrixorigin.io:${{ steps.date.outputs.date }}

0 comments on commit fee560d

Please sign in to comment.