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 1124ec0b6f Update publish-docker.yaml
1124ec0b6f is described below

commit 1124ec0b6fe7bf39bad391d4a1f9330e48d16f86
Author: kezhenxu94 <[email protected]>
AuthorDate: Sun Feb 26 10:03:56 2023 +0800

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

diff --git a/.github/workflows/publish-docker.yaml 
b/.github/workflows/publish-docker.yaml
index 44c0d034e2..99a5d5e583 100644
--- a/.github/workflows/publish-docker.yaml
+++ b/.github/workflows/publish-docker.yaml
@@ -45,10 +45,12 @@ jobs:
       - name: Set environment variables
         run: |
           if [[ ${{ github.event_name }} != "release" ]]; then
+            echo "HUB=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
           else
+            echo "HUB=ghcr.io/apache/dolphinscheduler" >> $GITHUB_ENV
             echo "DOCKER_REGISTRY=ghcr.io/apache/dolphinscheduler" >> 
$GITHUB_ENV
             echo "DOCKER_USERNAME=${{ github.actor }}" >> $GITHUB_ENV
             echo "DOCKER_PASSWORD=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
@@ -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