-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish SAI-C server images to DockerHub (#172)
Signed-off-by: Andriy Kokhan <[email protected]>
- Loading branch information
1 parent
0f16887
commit c43d26a
Showing
2 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: sc-server-deb10-publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- '.github/workflows/sc-server-deb10-publish.yml' | ||
- 'dockerfiles/buster/Dockerfile.server' | ||
- 'npu/broadcom/BCM56850/saivs/Dockerfile.server' | ||
- 'npu/broadcom/BCM56850/saivs/configs/sai.profile' | ||
- 'npu/broadcom/BCM56850/saivs/configs/lanemap.ini' | ||
- 'npu/broadcom/BCM56850/saivs/configs/server/supervisord.conf' | ||
- 'common/**' | ||
- 'cli/**' | ||
- 'scripts/**' | ||
- 'configs/**' | ||
- 'setup.py' | ||
- 'build.sh' | ||
- '.dockerignore' | ||
- 'sai.env' | ||
|
||
jobs: | ||
build-sc-server: | ||
name: Build SAI Challenger server image | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Update submodules | ||
run: git submodule update --init | ||
- name: Build server Docker image | ||
run: ./build.sh -i server -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-server-trident2-saivs:buster plvisiondevs/sc-server-trident2-saivs:buster-latest | ||
- name: docker push sc-server | ||
run: docker push plvisiondevs/sc-server-trident2-saivs:buster-latest | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: sc-server-deb11-publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- '.github/workflows/sc-server-deb11-publish.yml' | ||
- 'dockerfiles/bullseye/Dockerfile.server' | ||
- 'npu/broadcom/BCM56850/saivs/Dockerfile.server' | ||
- 'npu/broadcom/BCM56850/saivs/configs/sai.profile' | ||
- 'npu/broadcom/BCM56850/saivs/configs/lanemap.ini' | ||
- 'npu/broadcom/BCM56850/saivs/configs/server/supervisord.conf' | ||
- 'common/**' | ||
- 'cli/**' | ||
- 'scripts/**' | ||
- 'configs/**' | ||
- 'setup.py' | ||
- 'build.sh' | ||
- '.dockerignore' | ||
- 'sai.env' | ||
|
||
jobs: | ||
build-sc-server: | ||
name: Build SAI Challenger server image | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Update submodules | ||
run: git submodule update --init | ||
- name: Build server Docker image | ||
run: ./build.sh -i server -o deb11 | ||
- 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-server-trident2-saivs:bullseye plvisiondevs/sc-server-trident2-saivs:bullseye-latest | ||
- name: docker push sc-server | ||
run: docker push plvisiondevs/sc-server-trident2-saivs:bullseye-latest | ||
|