-
Notifications
You must be signed in to change notification settings - Fork 36
44 lines (38 loc) · 1.11 KB
/
extended-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: k8s
on:
push:
branches:
- cdev-ignore
jobs:
tests:
name: Check dnd
runs-on: ubuntu-latest
# container: golang:1.21.3-alpine
steps:
- name: Install soft
run: |
apt update
apt install -y make jq curl git zip
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
wget https://releases.hashicorp.com/terraform/1.4.4/terraform_1.4.4_linux_amd64.zip
unzip terraform_1.4.4_linux_amd64.zip
cp terraform /usr/local/bin/
- name: Code checkout
uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: rinx/[email protected]
name: install k3d
- name: Get cluster info
run: |
kubectl cluster-info
- name: Build cdev
run: |
cp Dockerfile-alpine Dockerfile
docker build -t tmp-cdev:latest .
id=$(docker create tmp-cdev:latest)
docker cp $id:/bin/cdev /usr/local/bin/
docker rm -v $id
cdev -v
kubectl get node