Skip to content

Commit

Permalink
feat: push image to aliyun (#4)
Browse files Browse the repository at this point in the history
Signed-off-by: yeka <[email protected]>
  • Loading branch information
iamyeka authored Sep 12, 2024
1 parent a76ee8e commit 61f455a
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,18 @@ jobs:
flavor: |
latest=false
images: |
${{ secrets.DOCKERHUB_USERNAME }}/horizon-${{ matrix.components }}
# registry.cn-hangzhou.aliyuncs.com/${{ secrets.ALIREGISTRY_NAMESPACE }}/horizon-${{ matrix.components }}
registry.cn-hangzhou.aliyuncs.com/${{ secrets.ALIREGISTRY_NAMESPACE }}/horizon-${{ matrix.components }}
tags: |
type=ref,event=branch
type=sha,prefix={{branch}}-,enable=${{ github.ref_type == 'branch' }}
type=ref,event=tag
- name: Login to Docker Hub
- name: Login to Ali Container Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# - name: Login to Ali Container Registry
# uses: docker/login-action@v2
# with:
# registry: registry.cn-hangzhou.aliyuncs.com
# username: ${{ secrets.ALIREGISTRY_USERNAME }}
# password: ${{ secrets.ALIREGISTRY_TOKEN }}
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ALIREGISTRY_USERNAME }}
password: ${{ secrets.ALIREGISTRY_TOKEN }}

- name: Condition
id: condition
Expand Down

0 comments on commit 61f455a

Please sign in to comment.