Skip to content

Commit

Permalink
sync images to huaweicloud (#4305)
Browse files Browse the repository at this point in the history
* sync images to huaweicloud

* sync images to huaweicloud
  • Loading branch information
pixiake committed Sep 20, 2024
1 parent a8e619e commit 5c78cd0
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Login to Aliyun
- name: Login to HUAWEICLOUD
uses: docker/login-action@v3
with:
registry: registry.cn-beijing.aliyuncs.com
username: ${{ secrets.ALIYUNCS_USERNAME }}
password: ${{ secrets.ALIYUNCS_PASSWORD }}
registry: swr.cn-southwest-2.myhuaweicloud.com
username: ${{ secrets.HUAWEICLOUD_USERNAME }}
password: ${{ secrets.HUAWEICLOUD_PASSWORD }}

- name: Login to DOCKER
uses: docker/login-action@v3
Expand Down Expand Up @@ -69,3 +69,11 @@ jobs:
push: true
tags: |
docker.io/kubespheredev/ks-console:${{ steps.chose_registry.outputs.tag }}
- name: Sync ks images to HUAWEICLOUD
if: steps.chose_registry.outputs.env == 'prod'
run: |
# console
docker pull docker.io/kubesphere/ks-console:${{ steps.chose_registry.outputs.tag }}
docker tag docker.io/kubesphere/ks-console:${{ steps.chose_registry.outputs.tag }} swr.cn-southwest-2.myhuaweicloud.com/ks/kubesphere/ks-console:${{ steps.chose_registry.outputs.tag }}
docker push swr.cn-southwest-2.myhuaweicloud.com/ks/kubesphere/ks-console:${{ steps.chose_registry.outputs.tag }}

0 comments on commit 5c78cd0

Please sign in to comment.