This commit is contained in:
+53
@@ -0,0 +1,53 @@
|
||||
name: "K8s YAML Generator"
|
||||
description: "Builds a Docker image, pushes it to a private registry, generates Kubernetes YAML from a simplified YML file, and deploys it."
|
||||
author: "Claude Code made this"
|
||||
|
||||
inputs:
|
||||
image_name:
|
||||
description: "Docker image name to build and push (e.g. my-app)"
|
||||
required: true
|
||||
image_tag:
|
||||
description: "Docker image tag. If omitted, defaults to both 'latest' and the short commit SHA."
|
||||
required: false
|
||||
dockerfile:
|
||||
description: "Path to Dockerfile"
|
||||
required: false
|
||||
default: "Dockerfile"
|
||||
max_tags:
|
||||
description: "Maximum number of SHA image tags to keep in the registry"
|
||||
required: false
|
||||
default: "5"
|
||||
|
||||
registry:
|
||||
description: "Docker registry URL"
|
||||
required: false
|
||||
default: "registry.natelubitz.com"
|
||||
registry_username:
|
||||
description: "Registry username"
|
||||
required: true
|
||||
registry_password:
|
||||
description: "Registry password"
|
||||
required: true
|
||||
|
||||
kube_host:
|
||||
description: "Kubernetes API server URL"
|
||||
required: false
|
||||
default: "192.168.1.20:16443"
|
||||
kube_certificate:
|
||||
description: "Base64 encoded Kubernetes CA certificate"
|
||||
required: true
|
||||
kube_token:
|
||||
description: "Kubernetes service account token"
|
||||
required: true
|
||||
|
||||
# outputs:
|
||||
# output_file:
|
||||
# description: "Path to the generated Kubernetes YAML file"
|
||||
|
||||
runs:
|
||||
using: "docker"
|
||||
image: "Dockerfile"
|
||||
# args:
|
||||
# - ${{ inputs.input_file }}
|
||||
# - ${{ inputs.output_file }}
|
||||
# - ${{ inputs.auto_deploy }}
|
||||
Reference in New Issue
Block a user