Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: machine learning separate native docker image builds #16102

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zackpollard
Copy link
Contributor

No description provided.

@zackpollard zackpollard force-pushed the ci/machine-learning-seperate-platform-builds branch 2 times, most recently from 18de89c to 858624a Compare February 14, 2025 17:07
@zackpollard zackpollard force-pushed the ci/machine-learning-seperate-platform-builds branch 2 times, most recently from daed052 to 3d1192c Compare February 14, 2025 17:31
@zackpollard zackpollard force-pushed the ci/machine-learning-seperate-platform-builds branch from 3d1192c to e2cd63a Compare February 14, 2025 17:36
@zackpollard zackpollard marked this pull request as ready for review February 14, 2025 18:07
@zackpollard zackpollard requested a review from bo0tzz as a code owner February 14, 2025 18:07
Comment on lines +163 to +196
- name: Build and push image
uses: docker/[email protected]
with:
context: ${{ env.context }}
file: ${{ env.file }}
platforms: ${{ matrix.platforms }}
# Skip pushing when PR from a fork
push: ${{ !github.event.pull_request.head.repo.fork }}
labels: ${{ steps.metadata.outputs.labels }}
outputs: type=image,"name=${{ env.GHCR_REPO }},${{ env.DOCKER_REPO }}",push-by-digest=true,name-canonical=true,push=true
build-args: |
DEVICE=${{ matrix.device }}
BUILD_ID=${{ github.run_id }}
BUILD_IMAGE=${{ github.event_name == 'release' && github.ref_name || steps.metadata.outputs.tags }}
BUILD_SOURCE_REF=${{ github.ref_name }}
BUILD_SOURCE_COMMIT=${{ github.sha }}

- name: Build and push image
id: build
uses: docker/[email protected]
with:
context: ${{ env.context }}
file: ${{ env.file }}
platforms: ${{ matrix.platform }}
# Skip pushing when PR from a fork
push: ${{ !github.event.pull_request.head.repo.fork }}
labels: ${{ steps.metadata.outputs.labels }}
outputs: type=image,"name=${{ env.GHCR_REPO }},${{ env.DOCKER_REPO }}",push-by-digest=true,name-canonical=true,push=true
build-args: |
DEVICE=cpu
BUILD_ID=${{ github.run_id }}
BUILD_IMAGE=${{ github.event_name == 'release' && github.ref_name || steps.metadata.outputs.tags }}
BUILD_SOURCE_REF=${{ github.ref_name }}
BUILD_SOURCE_COMMIT=${{ github.sha }}
Copy link
Member

Choose a reason for hiding this comment

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

Duplicated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants