Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/_docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# TODO(shink): Improve files once this PR merged
# https://github.com/docker/bake-action/pull/247
- name: List targets
id: list-target
uses: docker/bake-action/subaction/list-targets@v5
uses: docker/bake-action/subaction/list-targets@v6
with:
files: arg.json,docker-bake.hcl
target: ${{ inputs.target }}
files: |
arg.json
docker-bake.hcl

docker:
name: 'docker'
Expand Down Expand Up @@ -127,8 +127,9 @@ jobs:

- name: Build and push Docker image
id: bake
uses: docker/bake-action@v5
uses: docker/bake-action@v6
with:
source: .

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use the local bake definition due to the change in docker/bake-action#193

files: |
${{ github.workspace }}/arg.json
${{ github.workspace }}/docker-bake.hcl
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
name: python
needs:
- prepare
if: ${{ github.event_name != 'pull_request' || (always() && contains(needs.prepare.outputs.pr-labels, 'python')) }}
if: ${{ github.event_name != 'pull_request' || (!cancelled() && contains(needs.prepare.outputs.pr-labels, 'python')) }}
uses: ./.github/workflows/_docker-build.yml
with:
target: 'python'
Expand All @@ -88,7 +88,7 @@ jobs:
needs:
- prepare
- python
if: ${{ github.event_name != 'pull_request' || (always() && contains(needs.prepare.outputs.pr-labels, 'cann')) }}
if: ${{ github.event_name != 'pull_request' || (!cancelled() && contains(needs.prepare.outputs.pr-labels, 'cann')) }}
uses: ./.github/workflows/_docker-build.yml
with:
target: 'cann'
Expand All @@ -100,7 +100,7 @@ jobs:
needs:
- prepare
- cann
if: ${{ github.event_name != 'pull_request' || (always() && contains(needs.prepare.outputs.pr-labels, 'pytorch')) }}
if: ${{ github.event_name != 'pull_request' || (!cancelled() && contains(needs.prepare.outputs.pr-labels, 'pytorch')) }}
uses: ./.github/workflows/_docker-build.yml
with:
target: 'pytorch'
Expand All @@ -112,7 +112,7 @@ jobs:
needs:
- prepare
- cann
if: ${{ github.event_name != 'pull_request' || (always() && contains(needs.prepare.outputs.pr-labels, 'mindspore')) }}
if: ${{ github.event_name != 'pull_request' || (!cancelled() && contains(needs.prepare.outputs.pr-labels, 'mindspore')) }}
uses: ./.github/workflows/_docker-build.yml
with:
target: 'mindspore'
Expand Down