Skip to content

Equinix k8s Action

Equinix k8s Action #1

name: Equinix k8s Action
on:
workflow_dispatch:
jobs:
Create-k8s-cluster:
name: "Create Cluster"
runs-on: ubuntu-latest
steps:
- name: Install ansible, git and jq
run: |
sudo apt-get update
sudo apt-get install ansible jq git -y
- name: Clone repo
run: |
git clone https://github.com/sustainable-computing-io/kepler-metal-ci
- name: Save ssh key from env to file
run: |
echo "${{ secrets.EQUINIX_SSH_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
- name: Play k8s_kubeadm.yml
with:
metal_auth_token: ${{ secrets.EQUINIX_API_TOKEN }}
equinix_project_id: ${{ secrets.EQUINIX_PROJECT_ID }}
metro: "da"
plan: "c3.small.x86"
os: "rhel_9"
run: |

Check failure on line 33 in .github/workflows/equinix_k8s_flow.yml

View workflow run for this annotation

GitHub Actions / Equinix k8s Action

Invalid workflow file

The workflow is not valid. .github/workflows/equinix_k8s_flow.yml (Line: 33, Col: 9): Unexpected value 'run' .github/workflows/equinix_k8s_flow.yml (Line: 26, Col: 9): Required property is missing: uses
cd kepler-metal-ci
ansible-playbook ansible/k8s_kubeadm.yml