gardener / ops-toolbelt

Useful tools and operations guide for gardener landscapes
Apache License 2.0
15 stars 26 forks source link

Build multi-arch OCI image #113

Closed vpnachev closed 7 months ago

vpnachev commented 7 months ago

What this PR does / why we need it: Build multi-arch OCI image

Which issue(s) this PR fixes: Fixes #64

Special notes for your reviewer:

Release note:

OCI image is now multi-arch. Supported platforms are `linux/amd64` and `linux/arm64`.
vpnachev commented 7 months ago

🎉 Also the build from the concourse works as expected

$ crane manifest europe-docker.pkg.dev/gardener-project/snapshots/gardener/ops-toolbelt:0.28.0-dev-ce45abbdb2517e74c2d25cb86d889c0c13476e49 |yq -MP
manifests:
  - digest: sha256:41db436d11cdd827fbe29c23d4c5e2130074f0b38fb8ec4595d54916a4ded099
    mediaType: application/vnd.docker.distribution.manifest.v2+json
    size: 2195
    platform:
      architecture: amd64
      os: linux
      features: []
  - digest: sha256:2517e940e90350ad87dba71a24e96467046cb9a5cefe03bb970f90b1fae6e901
    mediaType: application/vnd.docker.distribution.manifest.v2+json
    size: 2195
    platform:
      architecture: arm64
      os: linux
      features: []
mediaType: application/vnd.docker.distribution.manifest.list.v2+json
schemaVersion: 2