Skip to content

Commit

Permalink
Merge pull request #82 from kilosonc/main
Browse files Browse the repository at this point in the history
chore(image): support ali container registry
  • Loading branch information
kilosonc authored Mar 14, 2023
2 parents eacf745 + 3449f2e commit 4af5796
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ jobs:
- 'build/swagger/Dockerfile'
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
flavor: |
latest=false
images: |
${{ secrets.DOCKERHUB_USERNAME }}/horizon-${{ matrix.components }}
registry.cn-hangzhou.aliyuncs.com/horizoncd/horizon-${{ matrix.components }}
tags: |
type=ref,event=branch
type=sha,prefix={{branch}}-,enable=${{ github.ref_type == 'branch' }}
Expand All @@ -47,6 +48,14 @@ jobs:
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 }}

- name: Condition
id: condition
run: |
Expand Down

0 comments on commit 4af5796

Please sign in to comment.