This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch docker
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/docker by this push:
     new 162c29e8b0 Update publish-docker.yaml
162c29e8b0 is described below

commit 162c29e8b05d809863a46fc90df8adc434fc9163
Author: kezhenxu94 <[email protected]>
AuthorDate: Mon Feb 27 08:13:56 2023 +0800

    Update publish-docker.yaml
---
 .github/workflows/publish-docker.yaml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/publish-docker.yaml 
b/.github/workflows/publish-docker.yaml
index 7f28b5d20f..97e1856d5f 100644
--- a/.github/workflows/publish-docker.yaml
+++ b/.github/workflows/publish-docker.yaml
@@ -45,13 +45,15 @@ jobs:
       - name: Set environment variables
         run: |
           if [[ ${{ github.event_name }} != "release" ]]; then
-            echo "DOCKER_REGISTRY=docker.io/apache" >> $GITHUB_ENV
+            echo "DOCKER_REGISTRY=docker.io" >> $GITHUB_ENV
             echo "DOCKER_USERNAME=${{ secrets.DOCKERHUB_USER }}" >> $GITHUB_ENV
             echo "DOCKER_PASSWORD=${{ secrets.DOCKERHUB_TOKEN }}" >> 
$GITHUB_ENV
+            echo "HUB=apache" >> $GITHUB_ENV
           else
             echo "DOCKER_REGISTRY=ghcr.io/apache/dolphinscheduler" >> 
$GITHUB_ENV
             echo "DOCKER_USERNAME=${{ github.actor }}" >> $GITHUB_ENV
             echo "DOCKER_PASSWORD=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
+            echo "HUB=ghcr.io/apache/dolphinscheduler" >> $GITHUB_ENV
           fi
       - name: Log in to the Container registry
         uses: docker/login-action@v2
@@ -64,8 +66,6 @@ jobs:
       - name: Set up Docker Buildx
         uses: docker/setup-buildx-action@v2
       - name: Build and push docker images
-        env:
-          HUB: ${{ env.DOCKER_REGISTRY }}
         run: |
           ./mvnw -B clean deploy \
           -Dmaven.test.skip \

Reply via email to