github.com/siglens/siglens@v0.0.0-20240328180423-f7ce9ae441ed/.github/workflows/test-deploy.yml (about)

     1  name: test-deploy-using k3s-helm
     2  on:
     3    push:
     4      branches:
     5        - 'main'
     6  jobs:
     7      deploy-using-k3s-helm:
     8          runs-on: ubuntu-latest
     9          steps:
    10              -   name: Checkout code
    11                  uses: actions/checkout@v4
    12  
    13              -   name: Setup golang
    14                  uses: actions/setup-go@v4
    15                  with:
    16                      go-version: "1.21"
    17              -   name: Create a k3s cluster
    18                  uses: AbsaOSS/k3d-action@v2
    19                  with:
    20                      cluster-name: "siglens"
    21              -   name: Deploy the app
    22                  continue-on-error: false
    23                  run: |
    24                      helm repo add siglens https://siglens.github.io/charts
    25                      # create platform namespace
    26                      kubectl create ns platform
    27  
    28                      # installing using helm
    29                      helm install siglens siglens/siglens -n platform \
    30                      --wait \
    31                      --timeout 10m0s \
    32                      --set siglens.query.service.serviceType=LoadBalancer 
    33                      # get pods, services and the container images
    34                      kubectl get pods -n platform
    35                      kubectl get svc -n platform