forked from sonic-net/DASH
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdash-saithrift-client-bldr-docker.yml
More file actions
52 lines (50 loc) · 1.94 KB
/
Copy pathdash-saithrift-client-bldr-docker.yml
File metadata and controls
52 lines (50 loc) · 1.94 KB
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
46
47
48
49
50
51
52
name: DASH-docker-saithrift-client-bldr-image
on:
push:
branches: [ "**" ]
paths:
- '.github/workflows/dash-saithrift-client-bldr-docker.yml'
- '.github/workflows/dash-saithrift-client-bldr-docker.yml'
- 'dash-pipeline/Makefile'
- 'dash-pipeline/dockerfiles/Dockerfile.saithrift-client-bldr'
- 'dash-pipeline/dockerfiles/DOCKER_SAITHRIFT_CLIENT_BLDR_IMG.env'
- 'dash-pipeline/.dockerignore'
- 'dash-pipeline/dockerfiles/.dockerignore'
pull_request:
branches: [ "**" ]
paths:
- '.github/workflows/dash-saithrift-client-bldr-docker.yml'
- 'dash-pipeline/Makefile'
- 'dash-pipeline/dockerfiles/Dockerfile.saithrift-client-bldr'
- 'dash-pipeline/dockerfiles/DOCKER_SAITHRIFT_CLIENT_BLDR_IMG.env'
- 'dash-pipeline/.dockerignore'
- 'dash-pipeline/dockerfiles/.dockerignore'
workflow_dispatch:
jobs:
build:
name: Build dash-saithrift-client-bldr-image
# Only run on forks (in main repo, run build/publish workflows instead)
if: github.repository != 'Azure/DASH'
runs-on: ubuntu-20.04
env:
docker_fg_flags: -u root --privileged
docker_bg_flags: -d -u root --privileged
defaults:
run:
working-directory: ./dash-pipeline
steps:
- uses: actions/checkout@v3
- name: Pull docker p4c image
run: make docker-pull-dash-p4c
- name: Build P4 software switch (bmv2) and P4Info
run: DOCKER_FLAGS=$docker_fg_flags make p4
- name: Install SAI submodule
run: git submodule update --init
- name: Build docker saithrift-bldr image
run: make docker-saithrift-bldr
- name: Generate SAI API
run: DOCKER_FLAGS=$docker_fg_flags make sai
- name: Generate SAI-Thrift client and server code and libs
run: DOCKER_FLAGS=$docker_fg_flags make saithrift-server
- name: Build saithrift client builder docker image
run: DOCKER_FLAGS=$docker_fg_flags make docker-saithrift-client-bldr