Skip to content

Commit

Permalink
Update docker-images.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhonger authored Jun 30, 2022
1 parent 69e489f commit 20447d8
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Login to Alibaba Cloud Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: registry.cn-shanghai.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
-
name: Generate App Version
run: echo APP_VERSION=`git describe --tags --always` >> $GITHUB_ENV
Expand All @@ -52,18 +59,5 @@ jobs:
tags: |
${{ env.DOCKERHUB_REPO }}:latest
${{ env.DOCKERHUB_REPO }}:${{ env.APP_VERSION }}
-
name: Login to Alibaba Cloud Container Registry (ACR)
uses: docker/login-action@v2
with:
registry: registry.cn-shanghai.aliyuncs.com
username: ${{ secrets.ACE_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
-
name: Push Images to ACR
uses: akhilerm/[email protected]
with:
src: docker.io/${{ env.DOCKERHUB_REPO }}:${{ env.APP_VERSION }}
dst: |
registry.cn-shanghai.aliyuncs.com/${{ env.DOCKERHUB_REPO }}:latest
registry.cn-shanghai.aliyuncs.com/${{ env.DOCKERHUB_REPO }}:${{ env.APP_VERSION }}

0 comments on commit 20447d8

Please sign in to comment.