From 8276e9e7f321fd7d6a7d7c3743815ee64b7796fb Mon Sep 17 00:00:00 2001 From: mac641 Date: Mon, 1 Dec 2025 15:19:57 +0100 Subject: [PATCH 1/3] ci(pr): push oci-artifact to registry --- .github/workflows/pr.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index e313c26f..fef6f1b7 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -10,6 +10,7 @@ concurrency: cancel-in-progress: true env: + DOCKER_BAKE_REGISTRY_PUSH: _common.output+=type=registry,oci-artifact=true GCS_BUCKET: images.metal-pod.io ACTIONS_ALLOW_UNSECURE_COMMANDS: true @@ -89,7 +90,7 @@ jobs: # take a look at the docs for further info on how to append targets etc. # append to target: https://docs.docker.com/reference/cli/docker/buildx/bake/#set # GitHub Actions syntax: https://github.com/marketplace/actions/docker-buildx-bake - set: _common.output+=type=registry + set: ${{ env.DOCKER_BAKE_REGISTRY_PUSH }} env: OS_NAME: ${{ matrix.os.name }} SEMVER_MAJOR_MINOR: ${{ matrix.os.version }} @@ -120,7 +121,7 @@ jobs: files: ./docker-bake.hcl targets: ubuntu-firewall no-cache: true - set: _common.output+=type=registry + set: ${{ env.DOCKER_BAKE_REGISTRY_PUSH }} env: OS_NAME: firewall SEMVER_MAJOR_MINOR: 3.0-ubuntu @@ -154,7 +155,7 @@ jobs: files: ./docker-bake.hcl targets: ubuntu-capms no-cache: true - set: _common.output+=type=registry + set: ${{ env.DOCKER_BAKE_REGISTRY_PUSH }} env: KUBE_VERSION: 1.32.9 KUBE_APT_BRANCH: v1.32 @@ -188,7 +189,7 @@ jobs: files: ./docker-bake.hcl targets: debian-nvidia no-cache: true - set: _common.output+=type=registry + set: ${{ env.DOCKER_BAKE_REGISTRY_PUSH }} env: OS_NAME: debian-nvidia SEMVER_MAJOR_MINOR: ${{ matrix.os.version }} @@ -253,7 +254,7 @@ jobs: files: ./docker-bake.hcl targets: almalinux no-cache: true - set: _common.output+=type=registry + set: ${{ env.DOCKER_BAKE_REGISTRY_PUSH }} env: OS_NAME: almalinux SEMVER_MAJOR_MINOR: 9 From 6c3862bcbfcdbfc336c253c5a140dace1b3f1037 Mon Sep 17 00:00:00 2001 From: mac641 Date: Tue, 2 Dec 2025 10:17:20 +0100 Subject: [PATCH 2/3] ci(pr): push oci-mediatypes --- .github/workflows/pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index fef6f1b7..e5289b1c 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -10,7 +10,7 @@ concurrency: cancel-in-progress: true env: - DOCKER_BAKE_REGISTRY_PUSH: _common.output+=type=registry,oci-artifact=true + DOCKER_BAKE_REGISTRY_PUSH: _common.output+=type=registry,oci-artifact=true,oci-mediatypes=true GCS_BUCKET: images.metal-pod.io ACTIONS_ALLOW_UNSECURE_COMMANDS: true From cea6df08efcf6a6059d7a5c63fac028b96a36792 Mon Sep 17 00:00:00 2001 From: mac641 Date: Mon, 19 Jan 2026 09:18:15 +0100 Subject: [PATCH 3/3] refactor(ci): move comment describing how docker bake registry push works to the newly created variable --- .github/workflows/docker.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 50f85094..99a4ca7a 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -12,7 +12,15 @@ concurrency: cancel-in-progress: true env: + # target: _common + # field: output + # modifier: += (append) + # value = type=registry + # take a look at the docs for further info on how to append targets etc. + # append to target: https://docs.docker.com/reference/cli/docker/buildx/bake/#set + # GitHub Actions syntax: https://github.com/marketplace/actions/docker-buildx-bake DOCKER_BAKE_REGISTRY_PUSH: _common.output+=type=registry,oci-artifact=true,oci-mediatypes=true + GCS_BUCKET: images.metal-pod.io ACTIONS_ALLOW_UNSECURE_COMMANDS: true @@ -111,14 +119,6 @@ jobs: files: ./docker-bake.hcl targets: ${{ matrix.os.name }} no-cache: true - - # target: _common - # field: output - # modifier: += (append) - # value = type=registry - # take a look at the docs for further info on how to append targets etc. - # append to target: https://docs.docker.com/reference/cli/docker/buildx/bake/#set - # GitHub Actions syntax: https://github.com/marketplace/actions/docker-buildx-bake set: ${{ env.DOCKER_BAKE_REGISTRY_PUSH }} env: OS_NAME: ${{ matrix.os.name }}