We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa4a4d7 commit 83e4357Copy full SHA for 83e4357
.github/workflows/push.yaml
@@ -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
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
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