Skip to content

Commit

Permalink
Merge pull request #214 from puzzle/migrate-argo-v2
Browse files Browse the repository at this point in the history
migrate-argo-v2
  • Loading branch information
fmacheleidt authored Apr 16, 2024
2 parents 01c026f + 5f31ac7 commit a303a56
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 @@ -74,15 +74,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-gitlab-ci-cd-training-test'
TRAINING_NAMESPACE: 'pitc-cicd-gitlab-ci-cd-training-test'
TRAINING_VERSION: '${{ github.sha }}'
run: |
helm upgrade $TRAINING_HELM_RELEASE acend-training-chart --install --wait \
Expand All @@ -98,7 +98,7 @@ jobs:
env:
TRAINING_HELM_RELEASE: 'pr-${{ github.event.pull_request.number }}'
TRAINING_HELM_NAME: 'gitlab-ci-cd-training-puzzle'
TRAINING_NAMESPACE: 'pitc-gitlab-ci-cd-training-test'
TRAINING_NAMESPACE: 'pitc-cicd-gitlab-ci-cd-training-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-gitlab-ci-cd-training-test'
TRAINING_NAMESPACE: 'pitc-cicd-gitlab-ci-cd-training-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 @@ -76,15 +76,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-gitlab-ci-cd-training-prod'
TRAINING_NAMESPACE: 'pitc-cicd-gitlab-ci-cd-training-prod'
TRAINING_VERSION: '${{ github.sha }}'
run: |
helm upgrade $TRAINING_HELM_RELEASE acend-training-chart --install --wait \
Expand All @@ -101,7 +101,7 @@ jobs:
env:
TRAINING_HELM_RELEASE: 'latest'
TRAINING_HELM_NAME: 'gitlab-ci-cd-training-puzzle'
TRAINING_NAMESPACE: 'pitc-gitlab-ci-cd-training-prod'
TRAINING_NAMESPACE: 'pitc-cicd-gitlab-ci-cd-training-prod'
run: |
kubectl rollout restart deployment/${TRAINING_HELM_RELEASE}-${TRAINING_HELM_NAME} \
--kubeconfig $HOME/.kube/config \
Expand Down

0 comments on commit a303a56

Please sign in to comment.