Skip to content

Commit 83e4357

Browse files
committed
test
1 parent aa4a4d7 commit 83e4357

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/push.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build and Deploy
2+
3+
on: [push]
4+
5+
jobs:
6+
build-and-deploy:
7+
runs-on: ubuntu-22.04
8+
9+
steps:
10+
- name: Set up k3d
11+
run: |
12+
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash
13+
k3d cluster create mycluster
14+
15+
- name: Install kubectl
16+
run: |
17+
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
18+
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
19+
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Build Golang binary
24+
run: |
25+
cd nginx-supportpkg-for-k8s
26+
go build -o nginx-sp
27+
chmod +x nginx-sp
28+
./nginx-sp -p nic -n default

0 commit comments

Comments
 (0)