workflow with a small k8s cluster on GitHub #4
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: SuperSONIC CI workflow for Purdue Geddes cluster | |
on: | |
push: | |
branches: | |
- master | |
- ci | |
pull_request: | |
jobs: | |
deploy-at-geddes: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: v3.12.0 | |
- name: Configure kubectl | |
env: | |
KUBECONFIG: ${{ secrets.KUBECONFIG_SECRET }} | |
run: | | |
echo "$KUBECONFIG" > kubeconfig | |
echo "KUBECONFIG=kubeconfig" >> $GITHUB_ENV | |
- name: Deploy SuperSONIC Helm chart | |
run: | | |
kubectl config use-context geddes | |
helm upgrade --install super-sonic-ci helm \ | |
--values ci/values-geddes-cms-ci.yaml -n cms | |
- name: Validate Deployment | |
run: | | |
kubectl get pod sonic-ci-envoy -n cms | |
kubectl get pod sonic-ci-triton -n cms | |
- name: Run Test CMSSW Workflow | |
run: | | |
# TODO | |
sleep 120 | |
- name: Uninstall Helm Chart | |
if: ${{ success() }} | |
run: | | |
helm uninstall super-sonic-ci -n cms |