This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new e61b8a3dce fix: docker auto push tag name (#13858)
e61b8a3dce is described below
commit e61b8a3dceec387a60af63ff9919aa7cd08af4ac
Author: Jay Chung <[email protected]>
AuthorDate: Mon Apr 3 18:28:26 2023 +0800
fix: docker auto push tag name (#13858)
---
.github/workflows/publish-docker.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/publish-docker.yaml
b/.github/workflows/publish-docker.yaml
index 3fa1cf4b1f..612f4a10db 100644
--- a/.github/workflows/publish-docker.yaml
+++ b/.github/workflows/publish-docker.yaml
@@ -48,11 +48,13 @@ jobs:
echo "DOCKER_USERNAME=${{ secrets.DOCKERHUB_USER }}" >> $GITHUB_ENV
echo "DOCKER_PASSWORD=${{ secrets.DOCKERHUB_TOKEN }}" >>
$GITHUB_ENV
echo "HUB=apache" >> $GITHUB_ENV
+ echo "DOCKER_TAG=${{ github.event.release.tag_name }}" >>
$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
+ echo "DOCKER_TAG=${{ github.sha }}" >> $GITHUB_ENV
fi
- name: Log in to the Container registry
uses: docker/login-action@v2
@@ -71,6 +73,6 @@ jobs:
-Dmaven.javadoc.skip \
-Dcheckstyle.skip=true \
-Dmaven.deploy.skip \
- -Ddocker.tag=${{ github.sha }} \
+ -Ddocker.tag=${{ env.DOCKER_TAG }} \
-Ddocker.hub=${{ env.HUB }} \
-Pdocker,release