forked from sonic-net/DASH
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.38 KB
/
dash-p4c-bmv2-docker.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
name: DASH-docker-p4c-bmv2-build-image
on:
push:
branches: [ "**" ]
paths:
- '.github/workflows/dash-p4c-bmv2-docker.yml'
- 'dash-pipeline/dockerfiles/Dockerfile.p4c-bmv2'
- 'dash-pipeline/dockerfiles/DOCKER_P4C_BMV2_IMG.env'
- 'dash-pipeline/.dockerignore'
- 'dash-pipeline/dockerfiles/.dockerignore'
pull_request:
branches: [ "**" ]
paths:
- '.github/workflows/dash-p4c-bmv2-docker.yml'
- 'dash-pipeline/dockerfiles/Dockerfile.p4c-bmv2'
- 'dash-pipeline/dockerfiles/DOCKER_P4C_BMV2_IMG.env'
- 'dash-pipeline/.dockerignore'
- 'dash-pipeline/dockerfiles/.dockerignore'
workflow_dispatch:
jobs:
build:
name: Build docker dash-p4c-bmv2 image
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ./dash-pipeline
steps:
- uses: actions/checkout@v3
- name: Build dash-p4c-bmv2 docker image
run: make docker-dash-p4c
- uses: azure/docker-login@v1
if: ${{ github.event_name != 'pull_request' && github.repository == 'sonic-net/DASH' }}
with:
login-server: sonicdash.azurecr.io
username: ${{ secrets.DASH_ACR_USERNAME }}
password: ${{ secrets.DASH_ACR_PASSWORD }}
- name: Publish dash-p4c-bmv2 docker image to ACR
run: make docker-publish-dash-p4c
if: ${{ github.event_name != 'pull_request' && github.repository == 'sonic-net/DASH' }}