Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Arm64 amd64 images #52

Closed
wants to merge 12 commits into from
Closed

Arm64 amd64 images #52

wants to merge 12 commits into from

Conversation

arpita0911patel
Copy link
Contributor

This will create two separate images:
awiciroh/ciroh-ngen-image:latest-arm
awiciroh/ciroh-ngen-image:latest-x86

Closes #51

Copy link
Contributor

@hellkite500 hellkite500 left a comment

Choose a reason for hiding this comment

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

I don't think this is actually building an arm image. Should try using the --platform flag to buildx with qemu enabled in the runner image.

image

@@ -20,9 +20,9 @@ runs:
echo "${{ inputs.docker-auth-token }}" | docker login --username awiciroh --password-stdin
- name: Build and tag Docker image
shell: bash
run: docker build -t awiciroh/ciroh-ngen-image:${{ inputs.github-sha }} -t awiciroh/ciroh-ngen-image-${{ inputs.image-platform }}:latest docker/.
run: docker build -t awiciroh/ciroh-ngen-image:${{ inputs.github-sha }} -t awiciroh/ciroh-ngen-image:latest-${{ inputs.image-platform }} docker/.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this build step is where you want to use QEMU and then provide the --platform flag to the build so it can build either one...

steps:
- name: deploy
uses: actions/checkout@v2
- name: Set up QEMU
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think buildx is building an actual arm image. Since the build-and-push action runs on ubuntu (amd64), just having QEMU ready isn't enough, buildx has to know to build for that platform and work with QEMU. What is actually happening here is buildx is building for the native platform (amd64) and adding the arm platfrom tag.

@benlee0423
Copy link
Collaborator

We wanted image name format as,
awiciroh/ciroh-ngen-image-arm:latest
awiciroh/ciroh-ngen-image-x86:latest

@arpita0911patel arpita0911patel closed this by deleting the head repository Oct 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docker not available on macos runners
3 participants