From 77b48e9bad93329923ce9838c0b29f267c514110 Mon Sep 17 00:00:00 2001 From: Lucien Shui Date: Fri, 12 Mar 2021 11:36:49 +0800 Subject: [PATCH] Add dockerhub in release workflow --- .github/workflows/upload-to-release.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/upload-to-release.yml b/.github/workflows/upload-to-release.yml index ee259747..6f263637 100644 --- a/.github/workflows/upload-to-release.yml +++ b/.github/workflows/upload-to-release.yml @@ -49,12 +49,18 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - name: Login to Aliyun DockerHub + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Login to Aliyun Docker Registry uses: docker/login-action@v1 with: registry: registry.cn-hangzhou.aliyuncs.com - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + username: ${{ secrets.ALIYUN_DOCKER_REGISTRY_USERNAME }} + password: ${{ secrets.ALIYUN_DOCKER_REGISTRY_TOKEN }} - name: Build and push id: docker_build @@ -69,6 +75,8 @@ jobs: linux/386 push: true tags: | + pasteme/frontend:latest + pasteme/frontend:${{ steps.release_version.outputs.tag }} registry.cn-hangzhou.aliyuncs.com/pasteus/pasteme-frontend:latest registry.cn-hangzhou.aliyuncs.com/pasteus/pasteme-frontend:${{ steps.release_version.outputs.tag }}