Skip to content

Commit

Permalink
Feat:Update docker hub (#1)
Browse files Browse the repository at this point in the history
Signed-off-by: laixingyou <[email protected]>
  • Loading branch information
coder-sett authored Sep 18, 2024
1 parent e7bac3f commit 4a34d70
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/publish_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: docker/metadata-action@v4
with:
images: |
registry.cn-hongkong.aliyuncs.com/oss-compass/compass-echarts-server
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 @@ -32,12 +32,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: Build and push
uses: docker/build-push-action@v3
Expand Down

0 comments on commit 4a34d70

Please sign in to comment.