Skip to content

Commit

Permalink
ci: Use script for cluster auth (#283)
Browse files Browse the repository at this point in the history
Co-authored-by: Kunj Dave <[email protected]>
  • Loading branch information
qctrlrobot and kdav108 authored Sep 20, 2023
1 parent 4b1583c commit 569c81f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ jobs:
- name: Update Sphinx deployment in Kubernetes (Development)
if: github.ref == 'refs/heads/master'
run: |
./ci vault awsKey -t $(cat .token) -r deploy-eks-dev -o ./.aws-credentials
./ci docker run qctrl/ci-images:google-cloud-sdk-ci sh -- -c '
. ./.aws-credentials;
aws eks update-kubeconfig --alias hidden --name platform-dev --region us-west-2;
. /scripts/connect-to-dev-cluster.sh;
kubectl -n qctrl-platform set image deployment/open-controls-docs open-controls-docs=qctrl/open-controls-docs:$COMMIT && kubectl -n qctrl-platform rollout status deployment/open-controls-docs;
'
4 changes: 1 addition & 3 deletions .github/workflows/on-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ jobs:
--suffix -docs
- name: Update Sphinx deployment in Kubernetes (Production)
run: |
./ci vault awsKey -t $(cat .token) -r deploy-eks-prod -o ./.aws-credentials
./ci docker run qctrl/ci-images:google-cloud-sdk-ci sh -- -c '
. ./.aws-credentials;
aws eks update-kubeconfig --alias hidden --name platform-prod --region us-west-2;
. /scripts/connect-to-prod-cluster.sh
kubectl -n qctrl-platform rollout restart deployment/open-controls-docs && kubectl -n qctrl-platform rollout status deployment/open-controls-docs;
'

0 comments on commit 569c81f

Please sign in to comment.