From e85a06798756ee4b954c03d9e41fdd61b4a0b64f Mon Sep 17 00:00:00 2001 From: Terry Date: Wed, 19 Jun 2024 14:40:45 +0800 Subject: [PATCH] push to aliyun --- .github/workflows/docker-image.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index f9e3a7e..b16691e 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -78,3 +78,19 @@ jobs: platforms: linux/amd64 file: ${{ matrix.Dockerfile }} tags: ${{ matrix.image }} + - + name: Login to Aliyun CS + uses: docker/login-action@v1 + with: + username: ${{ secrets.ALIYUNCR_USERNAME }} + password: ${{ secrets.ALIYUNCR_PASSWORD }} + - + name: Build and push to ALIYUN CR + id: docker_build_aliyun + uses: docker/build-push-action@v2 + with: + push: true + context: . + platforms: linux/amd64 + file: ${{ matrix.Dockerfile }} + tags: "registry.cn-hangzhou.aliyuncs.com/davyin/cloudrup-webserver:${{ matrix.tag }}" \ No newline at end of file