Skip to content

Commit 6ec8c15

Browse files
authored
feat: Deploy to AWS Production Cluster (#196)
* Deploy to AWS production cluster * Deploy to AWS production cluster
1 parent 101631e commit 6ec8c15

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/on-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@ jobs:
8484
./ci docker run qctrl/ci-images:google-cloud-sdk-ci sh -- -c '
8585
. ./.aws-credentials;
8686
aws eks update-kubeconfig --alias hidden --name platform-dev2 --region us-east-1;
87-
kubectl -n qctrl-platform set image deployment/python-open-controls-docs python-open-controls-docs=qctrl/python-open-controls-docs:$COMMIT;
87+
kubectl -n qctrl-platform set image deployment/python-open-controls-docs python-open-controls-docs=qctrl/python-open-controls-docs:$COMMIT && kubectl -n qctrl-platform rollout status deployment/python-open-controls-docs;
8888
'

.github/workflows/on-release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ jobs:
4545
- name: Update Sphinx deployment in Kubernetes (Production)
4646
run: |
4747
./ci vault login -r ${{ secrets.VAULT_ROLE_ID }} -s ${{ secrets.VAULT_SECRET_ID }}
48-
./ci vault gcpKey -t $(cat .token) --proj q-ctrl-documentation -r docs -o ./gcloud-service-key.json
49-
gcloud auth activate-service-account --key-file=./gcloud-service-key.json
50-
gcloud config set project q-ctrl-documentation
51-
gcloud container clusters get-credentials docs-production --zone us-central1-c
52-
kubectl -n docs rollout restart deployment/python-open-controls-docs
48+
./ci vault awsKey -t $(cat .token) -r deploy-eks-prod -o ./.aws-credentials
49+
./ci docker run qctrl/ci-images:google-cloud-sdk-ci sh -- -c '
50+
. ./.aws-credentials;
51+
aws eks update-kubeconfig --alias hidden --name platform-prod --region us-west-2;
52+
kubectl -n qctrl-platform rollout restart deployment/python-open-controls-docs && kubectl -n qctrl-platform rollout status deployment/python-open-controls-docs;
53+
'

0 commit comments

Comments
 (0)