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 20ba7446c6 Update publish-helm-chart.yaml
20ba7446c6 is described below
commit 20ba7446c640b253d9dc8b485652f100cd2d187f
Author: kezhenxu94 <[email protected]>
AuthorDate: Mon Feb 27 08:26:54 2023 +0800
Update publish-helm-chart.yaml
---
.github/workflows/publish-helm-chart.yaml | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/publish-helm-chart.yaml
b/.github/workflows/publish-helm-chart.yaml
index d94ce5619b..6dd21c713c 100644
--- a/.github/workflows/publish-helm-chart.yaml
+++ b/.github/workflows/publish-helm-chart.yaml
@@ -20,6 +20,10 @@ on:
push:
branches:
- dev
+ - docker
+ release:
+ types:
+ - released
env:
HUB: ghcr.io/apache/dolphinscheduler
@@ -36,14 +40,15 @@ jobs:
- uses: actions/checkout@v2
- name: Set environment variables
run: |
+ # TODO
if [[ ${{ github.event_name }} != "release" ]]; then
- echo "HUB=apache" >> $GITHUB_ENV
+ echo "HUB=registry-1.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
else
echo "HUB=ghcr.io/apache/dolphinscheduler" >> $GITHUB_ENV
- echo "DOCKER_REGISTRY=ghcr.io/apache/dolphinscheduler" >>
$GITHUB_ENV
+ echo "DOCKER_REGISTRY=c" >> $GITHUB_ENV
echo "DOCKER_USERNAME=${{ github.actor }}" >> $GITHUB_ENV
echo "DOCKER_PASSWORD=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV
fi
@@ -56,8 +61,10 @@ jobs:
- name: Publish Helm Chart
working-directory: deploy/kubernetes
run: |
- VERSION=0.0.0-$(git rev-parse --short HEAD)
- sed -i "s/^version: .*/version: $VERSION/"
dolphinscheduler/Chart.yaml
+ if [[ ${{ env.HUB }} == "ghcr.io/apache/dolphinscheduler" ]]; then
+ VERSION=0.0.0-$(git rev-parse --short HEAD)
+ sed -i "s/^version: .*/version: $VERSION/"
dolphinscheduler/Chart.yaml
+ fi
helm dep up dolphinscheduler
helm package dolphinscheduler
helm push dolphinscheduler-helm-$VERSION.tgz oci://${{ env.HUB }}