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

Publish arm docker images as part of the release process #893

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

@noituri noituri self-assigned this Dec 20, 2024
@noituri noituri force-pushed the @noituri/build-arm-docker branch 4 times, most recently from 283dbd0 to 29db9de Compare January 9, 2025 11:34
@noituri noituri requested a review from wkozyra95 January 9, 2025 11:38
Copy link
Member

@wkozyra95 wkozyra95 left a comment

Choose a reason for hiding this comment

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

LGTM, just few questions to make sure I understand

- name: ⏩ Push ARM64 image
run: |
docker push ghcr.io/software-mansion/smelter:${{ github.sha }}
echo "ARM64_IMAGE_ID=$(docker inspect --format='{{index .RepoDigests 0}}' ghcr.io/software-mansion/smelter:${{ github.sha }})" >> "$GITHUB_ENV"
Copy link
Member

Choose a reason for hiding this comment

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

Is this command show digest of a image that was build last? Seems hacky is there a way to avoid relaying on that build order?

Copy link
Member Author

Choose a reason for hiding this comment

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

Discussed outside of GitHub


docker push "${IMAGE_NAME}:${RELEASE_TAG}"
docker push "${IMAGE_NAME}:${RELEASE_TAG}-web-renderer"
docker buildx imagetools create -t "${IMAGE_NAME}:${RELEASE_TAG}" "${IMAGE_NAME}:${COMMIT_HASH}"
Copy link
Member

Choose a reason for hiding this comment

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

Is the docker pull above needed? I assumed that it only fetches image for one arch, so this command must not rely on what actual is fetched locally. (just guessing here)

Copy link
Member Author

Choose a reason for hiding this comment

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

You're correct. The pull is not needed here. Fixed

@noituri noituri force-pushed the @noituri/build-arm-docker branch 2 times, most recently from e8c68a1 to 43896df Compare January 9, 2025 14:06
@noituri noituri merged commit 5bd6057 into master Jan 9, 2025
9 of 12 checks passed
@noituri noituri deleted the @noituri/build-arm-docker branch January 9, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants