-
Notifications
You must be signed in to change notification settings - Fork 37
42 lines (39 loc) · 1.26 KB
/
sc-server-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
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