baby hero test scale #236
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DASH-docker-bmv2-bldr-build-image | |
on: | |
push: | |
branches: [ "**" ] | |
paths: | |
- '.github/workflows/dash-bmv2-bldr-docker.yml' | |
- 'dash-pipeline/Makefile' | |
- 'dash-pipeline/dockerfiles/Dockerfile.bmv2-bldr' | |
- 'dash-pipeline/dockerfiles/DOCKER_BMV2_BLDR_IMG.env' | |
- 'dash-pipeline/.dockerignore' | |
- 'dash-pipeline/dockerfiles/.dockerignore' | |
pull_request: | |
branches: [ "**" ] | |
paths: | |
- '.github/workflows/dash-bmv2-bldr-docker.yml' | |
- 'dash-pipeline/Makefile' | |
- 'dash-pipeline/dockerfiles/Dockerfile.bmv2-bldr' | |
- 'dash-pipeline/dockerfiles/DOCKER_BMV2_BLDR_IMG.env' | |
- 'dash-pipeline/.dockerignore' | |
- 'dash-pipeline/dockerfiles/.dockerignore' | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build docker dash-bmv2-bldr image | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
working-directory: ./dash-pipeline | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build dash-bmv2-bldr docker image | |
run: make docker-bmv2-bldr | |
# Can only publish from within DASH repo (need credentials from secrets) | |
- 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-bmv2-bldr image | |
if: ${{ github.event_name != 'pull_request' && github.repository == 'sonic-net/DASH' }} | |
run: make docker-publish-bmv2-bldr |