-
Notifications
You must be signed in to change notification settings - Fork 24
Arm64 amd64 images #52
Arm64 amd64 images #52
Conversation
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.
@@ -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/. |
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.
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 |
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.
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.
We wanted image name format as, |
This will create two separate images:
awiciroh/ciroh-ngen-image:latest-arm
awiciroh/ciroh-ngen-image:latest-x86
Closes #51