Skip to content

feat: enable multi-arch arm64 builds#44

Open
rhdedgar wants to merge 3 commits intollamastack:mainfrom
rhdedgar:multi-arch_arm64
Open

feat: enable multi-arch arm64 builds#44
rhdedgar wants to merge 3 commits intollamastack:mainfrom
rhdedgar:multi-arch_arm64

Conversation

@rhdedgar
Copy link

Adding multi-architecture ARM64 build support to the release process.

Closes RHAIENG-2781.

Addresses
llamastack/llama-stack#4290 (comment)
as a follow-up to
llamastack/llama-stack#4290.

Signed-off-by: Doug Edgar <dedgar@redhat.com>
docker images | cat

echo "Pushing docker image"
echo "Building and pushing multi-arch OpenShift-compatible image"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
echo "Building and pushing multi-arch OpenShift-compatible image"
echo "Building and pushing multi-arch image"

Copy link
Author

Choose a reason for hiding this comment

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

+1, I've updated the comment.

docker build "$LLAMA_STACK_DIR" \
BASE_TAG="llamastack/distribution-$distro:$TAG_SUFFIX-base"
docker buildx build "$LLAMA_STACK_DIR" \
--platform linux/amd64,linux/arm64 \
Copy link
Collaborator

Choose a reason for hiding this comment

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

should linux/amd64,linux/arm64 be a top var?

Copy link
Author

Choose a reason for hiding this comment

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

Sure, I've now replaced the 4 occurrences of that string with a new variable.

Signed-off-by: Doug Edgar <dedgar@redhat.com>
Signed-off-by: Doug Edgar <dedgar@redhat.com>
cdoern pushed a commit to llamastack/llama-stack that referenced this pull request Mar 2, 2026
Backport the publish-docker-images job from main to the release-0.5.x
branch so that Docker images are built and pushed to DockerHub when
releases are tagged from this branch.

Changes:
- Add DockerHub secrets documentation (DOCKERHUB_USERNAME,
DOCKERHUB_TOKEN)
- Add docker_only workflow input for retrying Docker builds
independently
- Add docker_only guard on build-package job
- Add publish-docker-images job with multi-arch support:
- CPU distros (starter, postgres-demo, dell): linux/amd64 + linux/arm64
  - GPU distros (meta-reference-gpu, starter-gpu): linux/amd64 only

# What does this PR do?
<!-- Provide a short summary of what this PR does and why. Link to
relevant issues if applicable. -->
Adding arm64 image builds and multi-arch container manifest generation
to the release workflow.

<!-- If resolving an issue, uncomment and update the line below -->
<!-- Closes #[issue-number] -->
Follows up on comment
#4290 (comment)
and supersedes llamastack/llama-stack-ops#44.
Closes RHAIENG-2781

## Test Plan
<!-- Describe the tests you ran to verify your changes with result
summaries. *Provide clear instructions so the plan can be easily
re-executed.* -->

<!-- For API changes, include:
1. A testing script (Python, curl, etc.) that exercises the new/modified
endpoints
2. The output from running your script

Example:
```python
...
...
```

Output:
```
<paste actual output here>
```
-->
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