Skip to content

Commit

Permalink
feat(ci): env (#25)
Browse files Browse the repository at this point in the history
* feat(ci): fix env
  • Loading branch information
yinjiayi authored Sep 10, 2023
1 parent a8b2cc8 commit 01ca2ab
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,40 +107,40 @@ jobs:
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: cn-south-1@${{ env.HUAWEICLOUD_REGISTRY_GZ }}
username: ${{ secrets.HUAWEICLOUD_USERNAME }}
registry: ${{ env.HUAWEICLOUD_REGISTRY_GZ }}
username: cn-south-1@${{ secrets.HUAWEICLOUD_USERNAME }}
password: ${{ secrets.HUAWEICLOUD_PASSWORD }}

- name: Log into registry ${{ env.HUAWEICLOUD_REGISTRY_SG }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ap-southeast-3@${{ env.HUAWEICLOUD_REGISTRY_SG }}
username: ${{ secrets.HUAWEICLOUD_USERNAME }}
registry: ${{ env.HUAWEICLOUD_REGISTRY_SG }}
username: ap-southeast-3@${{ secrets.HUAWEICLOUD_USERNAME }}
password: ${{ secrets.HUAWEICLOUD_PASSWORD }}

- name: Log into registry ${{ env.HUAWEICLOUD_REGISTRY_HK }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ap-southeast-1@${{ env.HUAWEICLOUD_REGISTRY_HK }}
username: ${{ secrets.HUAWEICLOUD_USERNAME }}
registry: ${{ env.HUAWEICLOUD_REGISTRY_HK }}
username: ap-southeast-1@${{ secrets.HUAWEICLOUD_USERNAME }}
password: ${{ secrets.HUAWEICLOUD_PASSWORD }}

- name: Log into registry ${{ env.HUAWEICLOUD_REGISTRY_AF }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: af-south-1@${{ env.HUAWEICLOUD_REGISTRY_AF }}
username: ${{ secrets.HUAWEICLOUD_USERNAME }}
registry: ${{ env.HUAWEICLOUD_REGISTRY_AF }}
username: af-south-1@${{ secrets.HUAWEICLOUD_USERNAME }}
password: ${{ secrets.HUAWEICLOUD_PASSWORD }}

- name: Log into registry ${{ env.HUAWEICLOUD_REGISTRY_LA }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: la-north-2${{ env.HUAWEICLOUD_REGISTRY_LA }}
username: ${{ secrets.HUAWEICLOUD_USERNAME }}
registry: ${{ env.HUAWEICLOUD_REGISTRY_LA }}
username: la-north-2@${{ secrets.HUAWEICLOUD_USERNAME }}
password: ${{ secrets.HUAWEICLOUD_PASSWORD }}

- name: Extract Docker metadata
Expand Down

0 comments on commit 01ca2ab

Please sign in to comment.