Skip to content

Instantly share code, notes, and snippets.

@cdbkr
Last active November 23, 2025 15:22
Show Gist options
  • Select an option

  • Save cdbkr/c1c1a7e5275ddf2edfe188989998da27 to your computer and use it in GitHub Desktop.

Select an option

Save cdbkr/c1c1a7e5275ddf2edfe188989998da27 to your computer and use it in GitHub Desktop.
name: "Update Kustomize Image"
description: "Updates a Kubernetes image reference in a kustomization.yaml file and commits the change."
inputs:
path:
description: "Path to the directory containing the kustomization.yaml file."
required: true
new-image-service:
description: "The logical name of the image as referenced in Kustomize (the key before =)."
required: true
new-image-name:
description: "The full container image repository (e.g., ghcr.io/org/service)."
required: true
new-image-version:
description: "The new image version or tag to set."
required: true
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.path }}
- ${{ inputs.new-image-service }}
- ${{ inputs.new-image-name }}
- ${{ inputs.new-image-version }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment