From fedd614c88dbeef0486c0a5260e7688a26848b13 Mon Sep 17 00:00:00 2001 From: tscuite Date: Thu, 13 Jul 2023 10:27:58 +0800 Subject: [PATCH] feat: update ci --- .github/workflows/deploy-dev.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-dev.yaml b/.github/workflows/deploy-dev.yaml index 0ba7e24a6..f2a8b742a 100644 --- a/.github/workflows/deploy-dev.yaml +++ b/.github/workflows/deploy-dev.yaml @@ -87,11 +87,11 @@ jobs: KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_TEST_DATA }} with: args: | - ns=main + echo "helm_ns=main" >> $GITHUB_ENV git clone https://github.com/HXSecurity/DongTai.git - if [ ${{ steps.version.outputs.GITHUB_REF }} = develop ] ; then ns= test - elif [ ${{ steps.version.outputs.GITHUB_REF }} = beta ] ; then ns= beta + if [ ${{ steps.version.outputs.GITHUB_REF }} = develop ] ; then echo "helm_ns=test" >> $GITHUB_ENV + elif [ ${{ steps.version.outputs.GITHUB_REF }} = beta ] ; then echo "helm_ns=beta" >> $GITHUB_ENV else echo "start main" ;fi - helm upgrade --install huoxian --create-namespace -n iast-${ns} ./DongTai/deploy/kubernetes/helm/ \ + helm upgrade --install huoxian --create-namespace -n iast-${{ env.helm_ns }} ./DongTai/deploy/kubernetes/helm/ \ --set sca.sca_token=${{ secrets.TOKEN_SCA }} --set usb.usb_token=${{ secrets.TOKEN_SCA }} --set mysql.host=iast-mysql-test.huoxian.cn \ --set tag=${{ steps.version.outputs.GITHUB_REF }}-latest --set build.server_number=iast${{github.run_number}} --values https://charts.dongtai.io/devops.yaml \ No newline at end of file