shantanoo-desai / komponist

A Composer for your favorite IoT/ IIoT container stacks with Ansible + Jinja2 + Docker Compose v2
GNU Affero General Public License v3.0
25 stars 2 forks source link

[GHA/Workflow] Architecture of built Images shows `unknown/unknown` #83

Closed shantanoo-desai closed 1 year ago

shantanoo-desai commented 1 year ago

Description

Upon viewing the Packages in the GitHub UI, the images built keep fluctuating between linux/amd64 or linux/arm64 and unknown/unknown.

shantanoo-desai commented 1 year ago

Investigation

Similar Issue on https://github.com/docker/build-push-action/issues/820

Potential Solution is to set the provenance: false

shantanoo-desai commented 1 year ago

Setting provenance: false resolves this issue.

Checks

  1. enable Docker Cross-Platform builds via QEMU:

    docker run --privileged --rm tonistiigi/binfmt --install arm64
  2. Pull an ARM64 Image

    docker pull --platform=linux/arm64 ghcr.io/shantanoo-desai/komponist-tui
  3. Pull an AMD64 Image

    docker pull --platform=linux/amd64 ghcr.io/shantanoo-desai/komponist-tui

Inspect using:

docker image inspect -f {{ .Os }}/{{ .Architecture }}" <Image_ID>