chore: fix login image with sha release (#10157)

# Which Problems Are Solved

Fixes the releasing of multi-architecture login images.

# How the Problems Are Solved

- The login-container workflow extends the bake definition with a file
docker-bake-release.hcl wich adds the platforms linux/arm and linux/amd
to all relevant build targets. The used technique is similar to how the
docker metadata action allows to extend the bake definitions.
- The local login tag is moved to the metadata bake target, which is
always inherited and overwritten in the pipeline
- Packages write permission is added

# Additional Changes

- The MIT license is noted in container labels and annotations
- The Image is built from root so that the local proto files are used

---------

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
Elio Bischof
2025-07-03 13:10:10 +02:00
committed by GitHub
co-authored by Copilot
parent 47f0486ee8
commit 12656235e2
6 changed files with 40 additions and 16 deletions
@@ -16,7 +16,7 @@ services:
ZITADEL_ADMIN_USER: [email protected]
login:
image: "${LOGIN_TAG:-login:local}"
image: "${LOGIN_TAG:-zitadel-login:local}"
container_name: acceptance-login
labels:
- "traefik.enable=true"