From e04a56a45be993a5d925dc104b90ae8fd372251a Mon Sep 17 00:00:00 2001 From: fmacheleidt Date: Tue, 19 Mar 2024 14:36:36 +0100 Subject: [PATCH] changes for argo v2 --- .github/workflows/build.yaml | 6 +++--- .github/workflows/pr-cleanup.yaml | 4 ++-- .github/workflows/push-main.yaml | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b590fd6..c68a596 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -72,7 +72,7 @@ jobs: - name: Create KUBECONFIG env: - KUBE_CONFIG: '${{ secrets.KUBECONFIG_TEST }}' + KUBE_CONFIG: '${{ secrets.KUBECONFIG_TEST_AV2 }}' run: | mkdir -p $HOME/.kube echo "$KUBE_CONFIG" > $HOME/.kube/config @@ -80,7 +80,7 @@ jobs: name: Deploy Helm Release env: TRAINING_HELM_RELEASE: 'pr-${{ github.event.pull_request.number }}' - TRAINING_NAMESPACE: 'pitc-amm-techlab-test' + TRAINING_NAMESPACE: 'pitc-cicd-amm-techlab-test' TRAINING_VERSION: '${{ github.sha }}' run: | helm upgrade $TRAINING_HELM_RELEASE acend-training-chart --install --wait \ @@ -96,7 +96,7 @@ jobs: env: TRAINING_HELM_RELEASE: 'pr-${{ github.event.pull_request.number }}' TRAINING_HELM_NAME: 'amm-techlab-puzzle' - TRAINING_NAMESPACE: 'pitc-amm-techlab-test' + TRAINING_NAMESPACE: 'pitc-cicd-amm-techlab-test' run: | kubectl rollout restart deployment/${TRAINING_HELM_RELEASE}-${TRAINING_HELM_NAME} \ --kubeconfig $HOME/.kube/config \ diff --git a/.github/workflows/pr-cleanup.yaml b/.github/workflows/pr-cleanup.yaml index 64daed7..3d55eaf 100644 --- a/.github/workflows/pr-cleanup.yaml +++ b/.github/workflows/pr-cleanup.yaml @@ -25,7 +25,7 @@ jobs: - name: Create KUBECONFIG env: - KUBE_CONFIG: '${{ secrets.KUBECONFIG_TEST }}' + KUBE_CONFIG: '${{ secrets.KUBECONFIG_TEST_AV2 }}' run: | mkdir -p $HOME/.kube echo "$KUBE_CONFIG" > $HOME/.kube/config @@ -33,7 +33,7 @@ jobs: name: Remove PR Environment Helm Release env: TRAINING_HELM_RELEASE: 'pr-${{ github.event.pull_request.number }}' - TRAINING_NAMESPACE: 'pitc-amm-techlab-test' + TRAINING_NAMESPACE: 'pitc-cicd-amm-techlab-test' TRAINING_VERSION: '${{ github.sha }}' run: | helm uninstall $TRAINING_HELM_RELEASE --kubeconfig $HOME/.kube/config --namespace=$TRAINING_NAMESPACE diff --git a/.github/workflows/push-main.yaml b/.github/workflows/push-main.yaml index a74949d..713c99d 100644 --- a/.github/workflows/push-main.yaml +++ b/.github/workflows/push-main.yaml @@ -74,7 +74,7 @@ jobs: - name: Create KUBECONFIG env: - KUBE_CONFIG: '${{ secrets.KUBECONFIG }}' + KUBE_CONFIG: '${{ secrets.KUBECONFIG_PROD_AV2 }}' run: | mkdir -p $HOME/.kube echo "$KUBE_CONFIG" > $HOME/.kube/config @@ -82,7 +82,7 @@ jobs: name: Deploy Helm Release env: TRAINING_HELM_RELEASE: 'latest' - TRAINING_NAMESPACE: 'pitc-amm-techlab-prod' + TRAINING_NAMESPACE: 'pitc-cicd-amm-techlab-prod' TRAINING_VERSION: '${{ github.sha }}' run: | helm upgrade $TRAINING_HELM_RELEASE acend-training-chart --install --wait \ @@ -99,7 +99,7 @@ jobs: env: TRAINING_HELM_RELEASE: 'latest' TRAINING_HELM_NAME: 'amm-techlab-puzzle' - TRAINING_NAMESPACE: 'pitc-amm-techlab-prod' + TRAINING_NAMESPACE: 'pitc-cicd-amm-techlab-prod' run: | kubectl rollout restart deployment/${TRAINING_HELM_RELEASE}-${TRAINING_HELM_NAME} \ --kubeconfig $HOME/.kube/config \