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

feat: build docker images on platform-specific runners instead of QEMU #5048

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

alexsporn
Copy link
Member

Description of change

Split the docker workflow into separate jobs to be able to build on platform-specific runners

Fixes #5046

Copy link

vercel bot commented Jan 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
apps-backend ⬜️ Ignored (Inspect) Visit Preview Jan 28, 2025 1:27pm
apps-ui-kit ⬜️ Ignored (Inspect) Visit Preview Jan 28, 2025 1:27pm
rebased-explorer ⬜️ Ignored (Inspect) Visit Preview Jan 28, 2025 1:27pm
wallet-dashboard ⬜️ Ignored (Inspect) Visit Preview Jan 28, 2025 1:27pm

@alexsporn alexsporn force-pushed the core-protocol/docker-arm-split branch from ef70952 to 9b0498c Compare January 28, 2025 10:01
@alexsporn alexsporn marked this pull request as draft January 28, 2025 10:09
@alexsporn alexsporn force-pushed the core-protocol/docker-arm-split branch 7 times, most recently from 7d484ac to e68371f Compare January 28, 2025 11:55
@alexsporn alexsporn marked this pull request as ready for review January 28, 2025 14:13
@alexsporn alexsporn added the ci Issues related to our CI pipeline label Jan 28, 2025
@alexsporn alexsporn changed the title feat: build iota-node docker on platform-specific runners feat: build docker images on platform-specific runners instead of QEMU Jan 28, 2025

# Check iota_node: true if the input is set to true and the event is workflow_dispatch,
# or if the event is a release (in which case the job should run regardless of the input).
if [ "${{ github.event_name == 'workflow_dispatch' && github.event.inputs.iota_node == 'true' || github.event_name == 'release' }}" == "true" ]; then
Copy link
Member

Choose a reason for hiding this comment

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

Just curious, do we actually need the final == "true"? Isn't it already a boolean?

exit 1
fi

echo "images=[$(printf '"%s",' "${images_array[@]}" | sed 's/,$//')]" >> "$GITHUB_OUTPUT"
Copy link
Member

Choose a reason for hiding this comment

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

I'm assuming this makes it into a JSON compatible square-bracket array?


- name: Build and push Docker image for iota-node
- name: Build and push by digest
Copy link
Member

Choose a reason for hiding this comment

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

What does "by digest" mean here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Issues related to our CI pipeline core-protocol node Issues related to the Core Node team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Distribute docker arm64 builds to new runners
3 participants