Skip to content

[Invalid] Test new branch #292

[Invalid] Test new branch

[Invalid] Test new branch #292

Workflow file for this run

name: Build and Push Docker Image
on:
workflow_dispatch:
push:
branches:
- 'main'
tags:
- 'v*'
paths:
- '.github/workflows/_docker-build.yml'
- '.github/workflows/docker.yml'
- 'docker-bake.hcl'
- 'cann/**'
- 'pytorch/**'
- 'mindspore/**'
- '!**/*.md'
pull_request:
branches:
- 'main'
paths:
- '.github/workflows/_docker-build.yml'
- '.github/workflows/docker.yml'
- 'docker-bake.hcl'
- 'cann/**'
- 'pytorch/**'
- 'mindspore/**'
- '!**/*.md'
release:
types:
- 'published'
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }}"
cancel-in-progress: ${{ !contains(github.ref, 'release/')}}
jobs:
cann:
name: cann
permissions:
packages: write
uses: ./.github/workflows/_docker-build.yml
with:
target: 'cann'
push: ${{ github.event_name != 'pull_request' }}
secrets:
DOCKERHUB_OWNER: ${{ secrets.DOCKERHUB_OWNER }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
QUAY_OWNER: ${{ secrets.QUAY_OWNER }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }}
pytorch:
name: pytorch
if: ${{ success() || failure() }}
permissions:
packages: write
needs:
- cann
uses: ./.github/workflows/_docker-build.yml
with:
target: 'pytorch'
push: ${{ github.event_name != 'pull_request' }}
clean-up: false
secrets:
DOCKERHUB_OWNER: ${{ secrets.DOCKERHUB_OWNER }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
QUAY_OWNER: ${{ secrets.QUAY_OWNER }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }}
mindspore:
name: mindspore
if: ${{ success() || failure() }}
permissions:
packages: write
needs:
- cann
uses: ./.github/workflows/_docker-build.yml
with:
target: 'mindspore'
push: ${{ github.event_name != 'pull_request' }}
clean-up: false
secrets:
DOCKERHUB_OWNER: ${{ secrets.DOCKERHUB_OWNER }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
QUAY_OWNER: ${{ secrets.QUAY_OWNER }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }}