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: Single node cluster with Kind | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
ICL_INGRESS_HTTP_PORT: 8080 | |
ICL_INGRESS_HTTPS_PORT: 8443 | |
ICL_INGRESS_RAY_PORT: 8001 | |
ICL_INGRESS_SSH_PORT: 8022 | |
ICL_USE_CCN: false | |
KUBECTL_VERSION: v1.28.2 | |
HELM_VERSION: v3.10.1 | |
TERRAFORM_VERSION: 1.4.6 | |
jobs: | |
deploy: | |
runs-on: | |
- self-hosted | |
- docker | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
pip install kubernetes 'pydantic<2.0.0' click | |
mkdir -p ~/bin | |
cd ~/bin | |
# kubectl | |
curl -sSL -o kubectl https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl && chmod 0755 kubectl | |
# helm | |
curl -sSL https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -o - | tar --strip-components=1 -zxf - linux-amd64/helm | |
# terraform | |
curl -sSLO https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip | |
- name: Delete the existing cluster | |
run: | | |
./scripts/deploy/kind.sh --delete || true | |
- name: Deploy a cluster with kind | |
run: | | |
./scripts/deploy/kind.sh | |
- name: Run tests | |
run: | | |
echo ./scripts/deploy/kind.sh --console ./scripts/ccn/test.sh | |
- name: Upload logs | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: logs | |
path: logs | |
if-no-files-found: ignore |