Skip to content

Commit

Permalink
changes for argo v2
Browse files Browse the repository at this point in the history
  • Loading branch information
fmacheleidt committed Mar 19, 2024
1 parent b0abcf3 commit e04a56a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ 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
-
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 \
Expand All @@ -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 \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ 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
-
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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/push-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ 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
-
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 \
Expand All @@ -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 \
Expand Down

0 comments on commit e04a56a

Please sign in to comment.