Update Rancher Deployment Image Address Action
Version v0.9 and later runs on the GitHub Actions Node.js 24 runtime.
Patch Deployment with Token - name : Update Workload uses : MultiMx/K8sSetImageAction@v0.9 with :
server : " https://my-cluster" token : " token-aaa:bbb" namespace : " default" workload : " ingress-nginx-controller" image : " registry.example/repo:tag" Patch and Wait Workload Ready - name : Update Workload uses : MultiMx/K8sSetImageAction@v0.9 with :
server : " https://my-cluster" token : " token-aaa:bbb" namespace : " default" workload : " ingress-nginx-controller" image : " registry.example/repo:tag" wait : true maxWaitDuration : " 10m" # optional, default 5m Options further down the list have higher priority. For example, if Option B is set, Option A will be ignored.
Credentials Option A: Server & Token Parameter Required Default Description serverO Kubeconfig cluster server skipTLSVerifyX falseSkip server TLS verify tokenO Kubeconfig user token
Credentials Option B / C: Kubeconfig Parameter Required Default Description kubeconfigFileX Option B. Path of kubeconfig file kubeconfigInlineX Option C. Inline content of kubeconfig
Parameter Required Default Description controllerX deploymentController of workload namespaceO Namespace of workload workloadO Name of workload maxPatchRetryX 5Max retry times for patch waitX falseWait until workload ready maxWaitDurationX 5mMax wait duration, will fail if timeout
Patch Option A: Generate Body Parameter Required Default Description containerX container-0Name of container imageO Target image field value
Patch Option B: Custom Body Parameter Required Default Description contentTypeX application/strategic-merge-patch+jsonContent-Type header of patch operation bodyO JSON body of patch operation