CI Add k8s
All checks were successful
CI Pipeline for the Go API / Docker Image Build Test (push) Successful in 20s
CI Pipeline for the Go API / Go Vet (basic static check) (push) Successful in 6s
CI Pipeline for the Go API / Go Build & Cross-Compile (push) Successful in 22s
CI Pipeline for the Go API / Kubernetes Smoke Test (push) Successful in 3s
All checks were successful
CI Pipeline for the Go API / Docker Image Build Test (push) Successful in 20s
CI Pipeline for the Go API / Go Vet (basic static check) (push) Successful in 6s
CI Pipeline for the Go API / Go Build & Cross-Compile (push) Successful in 22s
CI Pipeline for the Go API / Kubernetes Smoke Test (push) Successful in 3s
This commit is contained in:
@@ -58,3 +58,23 @@ jobs:
|
|||||||
name: go-api-binaries
|
name: go-api-binaries
|
||||||
path: build/
|
path: build/
|
||||||
|
|
||||||
|
k8s-some-test:
|
||||||
|
name: Kubernetes Smoke Test
|
||||||
|
runs-on: docker-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Configure kubeconfig
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.kube
|
||||||
|
echo "$KUBECONFIG_GITEA" > ~/.kube/config
|
||||||
|
chmod 600 ~/.kube/config
|
||||||
|
env:
|
||||||
|
KUBECONFIG_GITEA: ${{ secrets.KUBECONFIG_GITEA }}
|
||||||
|
|
||||||
|
- name: Kubectl test
|
||||||
|
run: kubectl version --client
|
||||||
|
|
||||||
|
- name: K3S Cluster Connection Test
|
||||||
|
run: kubectl get nodes -o wide
|
||||||
|
|||||||
Reference in New Issue
Block a user