forked from opencomputeproject/SAI-Challenger
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.5 KB
/
sc-standalone-deb10-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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