Add generic SAI Thrift server (#203) #16
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: sc-client-deb11-publish | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- '.github/workflows/sc-client-deb11-publish.yml' | |
- 'dockerfiles/bullseye/Dockerfile.client' | |
- 'dockerfiles/bullseye/Dockerfile.saithrift-client' | |
- 'common/**' | |
- 'cli/**' | |
- 'scripts/**' | |
- 'configs/**' | |
- 'setup.py' | |
- 'build.sh' | |
- '.dockerignore' | |
- 'sai.env' | |
jobs: | |
build-sc-client: | |
name: Build SAI Challenger client image | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update submodules | |
run: git submodule update --init | |
- name: Build client Docker image | |
run: ./build.sh -i client -o deb11 --nosnappi | |
- name: Build client Docker image with SAI thrift | |
run: ./build.sh -i client -s thrift -o deb11 --nosnappi | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: plvisiondevs | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Create a tag for DockerHub | |
run: docker tag sc-client:bullseye plvisiondevs/sc-client:bullseye-latest | |
- name: docker push sc-client | |
run: docker push plvisiondevs/sc-client:bullseye-latest | |
- name: Create a tag for DockerHub | |
run: docker tag sc-thrift-client:bullseye plvisiondevs/sc-thrift-client:bullseye-latest | |
- name: docker push sc-thrift-client | |
run: docker push plvisiondevs/sc-thrift-client:bullseye-latest |