-
Notifications
You must be signed in to change notification settings - Fork 22
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
Conversation
283dbd0
to
29db9de
Compare
There was a problem hiding this 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" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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}" |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
e8c68a1
to
43896df
Compare
Example multi-platform builds: