While this above image update in #1 is nice -- it doesn't solve the problem that the oci-image resource is still solely amd64. The only current solution is to build the coredns charm for a specific bases-index and match its release with the appropriate architecture resource
Pseudo code of process would be something like this:
* change the charmcraft.yaml to split the bases apart by supported arch:
While this above image update in #1 is nice -- it doesn't solve the problem that the oci-image resource is still solely amd64. The only current solution is to build the coredns charm for a specific bases-index and match its release with the appropriate architecture resource
Pseudo code of process would be something like this:
* change the charmcraft.yaml to split the bases apart by supported arch:
bases: ures: ["amd64"] ures: ["amd64"] ures: ["amd64"] ures: ["arm"] ures: ["amd64"] ures: ["arm64"] ures: ["amd64"] ures: ["ppc64le"] ures: ["amd64"] ures: ["s390x"]
- build-on: # bases-index 0
- name: "ubuntu"
channel: "22.04"
architect
run-on:
- name: "ubuntu"
channel: "22.04"
architect
- build-on: # bases-index 1
- name: "ubuntu"
channel: "22.04"
architect
run-on:
- name: "ubuntu"
channel: "22.04"
architect
- build-on: # bases-index 2
- name: "ubuntu"
channel: "22.04"
architect
run-on:
- name: "ubuntu"
channel: "22.04"
architect
- build-on: # bases-index 3
- name: "ubuntu"
channel: "22.04"
architect
run-on:
- name: "ubuntu"
channel: "22.04"
architect
- build-on: # bases-index 4
- name: "ubuntu"
channel: "22.04"
architect
run-on:
- name: "ubuntu"
channel: "22.04"
architect
for arch in charmcraft.yaml: linux/$ arch ${upstream_image} ${charm_ id} --resource resource- name=${ resource_ id}
charm_file = $(charmcraft pack -v --bases-index $(index_from_arch $arch))
charm_id = $(charmcraft upload $charm_file)
docker pull --platform=
resource_id = $(charmcraft upload-resource --image resource-name ${upstream_image})
charmcraft release coredns --revision=
done