Skip to content

Commit

Permalink
color helm diff, support pending install & rollback clearing, silence…
Browse files Browse the repository at this point in the history
… perms warnings, cleanup on failure, 10m timeout
  • Loading branch information
cmyui committed Nov 11, 2023
1 parent 4b2de49 commit 5ada51c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/k8s-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
mkdir -p $HOME/.kube
echo "${{ secrets.KUBECONFIG }}" > $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
chmod 600 $HOME/.kube/config
- name: Install helm
uses: azure/setup-helm@v3
with:
Expand All @@ -63,19 +65,26 @@ jobs:
token: ${{ secrets.COMMON_HELM_CHARTS_PAT }}
path: common-helm-charts

- name: Clear pending deployments
run: |
kubectl delete secret -l 'status in (pending-install, pending-upgrade, pending-rollback),name=akatsuki-api-production'
- name: Show manifest diff since previous release
run: |
helm diff upgrade \
--allow-unreleased \
--color=true \
--values chart/values.yaml \
akatsuki-api-production \
common-helm-charts/microservice-base/
- name: Deploy service to production cluster
run: |
helm upgrade \
--install \
--atomic \
--wait --timeout 480s \
--wait --timeout 10m \
--cleanup-on-fail \
--values chart/values.yaml \
akatsuki-api-production \
common-helm-charts/microservice-base/

0 comments on commit 5ada51c

Please sign in to comment.