gh-87 : CICD added for client-loxilb IPSec HA #1226
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Adv-LB-Sanity-CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
tags: | |
description: 'Advanced LB Sanity' | |
jobs: | |
build: | |
name: advanced-lb-sanity | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- uses: actions/setup-python@v2 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '>=1.18.0' | |
- run: sudo apt-get update | |
- run: sudo apt-get -y install clang-10 llvm libelf-dev gcc-multilib libpcap-dev linux-tools-$(uname -r) elfutils dwarves git libbsd-dev bridge-utils unzip build-essential bison flex iperf iproute2 nodejs socat ethtool | |
- run: loxilb-ebpf/utils/mkllb_bpffs.sh | |
- run: sudo -E env "PATH=$PATH" make | |
- run: sudo -E env "PATH=$PATH" make test | |
- run: docker pull ghcr.io/loxilb-io/loxilb:latest | |
- run: docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --name loxilb ghcr.io/loxilb-io/loxilb:latest | |
- run: pwd && ls && sudo -E env "PATH=$PATH" make docker-cp | |
- run: docker exec -dit loxilb mkllb_bpffs | |
- run: id=`docker ps -f name=loxilb | cut -d " " -f 1 | grep -iv "CONTAINER"` && docker commit $id ghcr.io/loxilb-io/loxilb:latest | |
- run: docker stop loxilb && docker rm loxilb | |
- run: | | |
cd cicd/k8slbsim/ | |
./config.sh | |
./validation.sh | |
./rmconfig.sh | |
cd - | |
- run: | | |
cd cicd/onearml2/ | |
./config.sh | |
./validation.sh | |
./rmconfig.sh | |
cd - | |
- run: | | |
cd cicd/ulcltcplb/ | |
./config.sh | |
./validation.sh | |
./rmconfig.sh | |
cd - | |
- run: | | |
cd cicd/ulclsctplb/ | |
./config.sh | |
./validation.sh | |
./rmconfig.sh | |
cd - | |
- run: | | |
cd cicd/tcptunlb/ | |
./config.sh | |
./validation.sh | |
./rmconfig.sh | |
cd - | |
- run: | | |
cd cicd/sctptunlb/ | |
./config.sh | |
./validation.sh | |
./rmconfig.sh | |
cd - | |
- run: | | |
cd cicd/wrrtcplb1/ | |
./config.sh | |
./validation.sh | |
./rmconfig.sh | |
cd - | |
- run: | | |
cd cicd/wrrtcplb2/ | |
./config.sh | |
./validation.sh | |
./rmconfig.sh | |
cd - | |
- run: | | |
cd cicd/nat64tcp/ | |
./config.sh | |
./validation.sh | |
./rmconfig.sh | |
cd - | |
- run: | | |
cd cicd/tcplbmaxep/ | |
./config.sh | |
./validation.sh | |
./rmconfig.sh | |
cd - | |
- run: | | |
cd cicd/ipmasquerade/ | |
./config.sh | |
./validation.sh | |
./rmconfig.sh | |
cd - | |
- run: | | |
cd cicd/httpsproxy/ | |
./config.sh | |
./validation.sh | |
./rmconfig.sh | |
cd - | |
- run: | | |
cd cicd/e2ehttpsproxy/ | |
./config.sh | |
./validation.sh | |
./rmconfig.sh | |
cd - |