Fix buster-backports in Dockerfile.client (#238) #29
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-standalone-deb10-publish | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- '.github/workflows/sc-standalone-deb10-publish.yml' | |
- 'dockerfiles/buster/Dockerfile' | |
- 'npu/broadcom/BCM56850/saivs/Dockerfile' | |
- 'npu/broadcom/BCM56850/saivs/Dockerfile.saithrift' | |
- 'common/**' | |
- 'cli/**' | |
- 'scripts/**' | |
- 'configs/**' | |
- 'setup.py' | |
- 'build.sh' | |
- '.dockerignore' | |
- 'sai.env' | |
jobs: | |
build-sc-standalone: | |
name: Build SAI Challenger standalone image | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update submodules | |
run: git submodule update --init | |
- name: Build standalone Docker image | |
run: ./build.sh -i standalone -o deb10 | |
- 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-trident2-saivs:buster plvisiondevs/sc-trident2-saivs:buster-latest | |
- name: docker push sc-trident2-saivs | |
run: docker push plvisiondevs/sc-trident2-saivs:buster-latest | |
- name: Build standalone Docker image with SAI thrift | |
run: ./build.sh -i standalone -s thrift -o deb10 | |
- name: Create a tag for DockerHub | |
run: docker tag sc-thrift-trident2-saivs:buster plvisiondevs/sc-thrift-trident2-saivs:buster-latest | |
- name: docker push sc-thrift-trident2-saivs | |
run: docker push plvisiondevs/sc-thrift-trident2-saivs:buster-latest |