Debugging the deployment status #65
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package and lint | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- 'v*' | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup helm CLI | |
uses: azure/setup-helm@v3 | |
with: | |
# this is needed only temporarily - see https://github.com/helm/helm/issues/12423 | |
version: 3.12.3 | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install kubectl | |
uses: azure/setup-kubectl@v3 | |
- name: Build helm dependencies | |
run: | | |
helm dependency build . | |
- name: Lint helm | |
run: | | |
helm lint . | |
# we package just to validate | |
- name: Package helm | |
run: | | |
helm package . | |
- uses: actions/setup-python@v3 | |
- uses: gabe565/setup-helm-docs-action@v1 | |
- uses: pre-commit/[email protected] | |
- name: Create kind cluster | |
uses: helm/[email protected] | |
- name: Install chart prerequisites | |
env: | |
REGISTRY_PASS: ${{ secrets.REGISTRY_PASS }} | |
LICENSE_BASE64: ${{ secrets.LICENSE_BASE64 }} | |
run: | | |
kubectl create secret docker-registry --dry-run=client sf-gitlab-registry-creds \ | |
--docker-server=registry.gitlab.com \ | |
--docker-username=sf-distribution \ | |
--docker-password=${REGISTRY_PASS} -o yaml > docker-secret.yaml | |
echo ${LICENSE_BASE64} | base64 -d > iengine.lic | |
kubectl create secret generic --dry-run=client iface-lic \ | |
--from-file=iengine.lic -o yaml > lic-secret.yaml | |
kubectl apply -f docker-secret.yaml | |
kubectl apply -f lic-secret.yaml | |
- name: Install helm chart | |
run: | | |
kubectl get storageclass | |
helm install smartface . | |
kubectl rollout status deployment sf-api --timeout=60s || true | |
kubectl describe deployment sf-api | |
kubectl logs deployment sf-api | |
kubectl describe statefulset smartface-rabbitmq | |
- name: Test helm chart | |
run: | | |
helm test smartface |