Skip to content

Commit

Permalink
feat: change docker hub
Browse files Browse the repository at this point in the history
Signed-off-by: laixingyou <[email protected]>
  • Loading branch information
coder-sett committed Sep 18, 2024
1 parent 6ec8d24 commit 23c2c71
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/publish_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
registry.cn-hongkong.aliyuncs.com/oss-compass/compass-docs
osscompassorg/compass-web
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'release') }}
type=raw,value=nightly,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
Expand All @@ -48,12 +48,11 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to ACR
uses: aliyun/acr-login@v1
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
login-server: https://registry.cn-hongkong.aliyuncs.com
username: "${{ secrets.REGISTRY_USERNAME }}"
password: "${{ secrets.REGISTRY_PASSWORD }}"
username: '${{ secrets.DOCKER_REGISTRY_USERNAME }}'
password: '${{ secrets.DOCKER_REGISTRY_PASSWORD }}'

- name: docker build and push
uses: docker/build-push-action@v3
Expand Down
2 changes: 1 addition & 1 deletion modules/community

0 comments on commit 23c2c71

Please sign in to comment.