From c7dbbdd4ad067f698a198c7988feacce43570491 Mon Sep 17 00:00:00 2001 From: Xunzhuo Date: Mon, 13 Mar 2023 11:50:32 +0800 Subject: [PATCH] ci: add helm login to prevent authorization failed (#1131) ci: add helm login to prevent unauth Signed-off-by: bitliu --- .github/workflows/build_and_test.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml index ae26416a167..a89df10e5ed 100644 --- a/.github/workflows/build_and_test.yaml +++ b/.github/workflows/build_and_test.yaml @@ -140,4 +140,6 @@ jobs: - name: Build and Push EG Latest Helm Chart if: github.event_name == 'push' && github.ref == 'refs/heads/main' # use `0.0.0` as the default latest version. - run: CHART_NAME=envoy-gateway OCI_REGISTRY=oci://docker.io/envoyproxy CHART_VERSION=0.0.0 TAG=latest make helm-package helm-push + run: | + helm registry login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin ${{ secrets.DOCKERHUB_PASSWORD }} + CHART_NAME=envoy-gateway OCI_REGISTRY=oci://docker.io/envoyproxy CHART_VERSION=0.0.0 TAG=latest make helm-package helm-push