Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/build-ghcr-kubeopencode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Build GHCR KubeOpenCode

on:
workflow_dispatch:
inputs:
platforms:
description: Docker platforms to build
required: false
default: linux/amd64

permissions:
contents: read
Expand Down Expand Up @@ -41,7 +46,7 @@ jobs:
uses: docker/build-push-action@v7
with:
context: .
platforms: linux/amd64,linux/arm64
platforms: ${{ github.event.inputs.platforms || 'linux/amd64' }}
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow uses github.event.inputs.platforms to read the workflow_dispatch input, but other workflows in this repo consistently use the inputs context (e.g., manual-build.yaml). For consistency and readability, consider switching to ${{ inputs.platforms }} here; since you already define a default on the input, the || 'linux/amd64' fallback can likely be removed as well.

Suggested change
platforms: ${{ github.event.inputs.platforms || 'linux/amd64' }}
platforms: ${{ inputs.platforms }}

Copilot uses AI. Check for mistakes.
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
Expand Down