-
Notifications
You must be signed in to change notification settings - Fork 36
44 lines (42 loc) · 1.39 KB
/
sc-client-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
name: sc-client-deb10-publish
on:
push:
branches:
- 'main'
paths:
- '.github/workflows/sc-client-deb10-publish.yml'
- 'dockerfiles/buster/Dockerfile.client'
- 'dockerfiles/buster/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 deb10 --nosnappi
- name: Build client Docker image with SAI thrift
run: ./build.sh -i client -s thrift -o deb10 --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:buster plvisiondevs/sc-client:buster-latest
- name: docker push sc-client
run: docker push plvisiondevs/sc-client:buster-latest
- name: Create a tag for DockerHub
run: docker tag sc-thrift-client:buster plvisiondevs/sc-thrift-client:buster-latest
- name: docker push sc-thrift-client
run: docker push plvisiondevs/sc-thrift-client:buster-latest