You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Update k8s image
v1.4
This action prints modifies a Kubernetes deployment file by updating a container image version.
- uses: Charlyzzz/update-k8s-image
with:
# Path to the yaml manifest. Required.
manifest-path: ''
# Value that will replace current image tag.
# Defaults to ${{ github.sha }}
new-image-tag: ''
# Image name used to disambiguate specs. Required.
name: ''
# Sample deployment file
###
# apiVersion: apps/v1
# kind: Deployment
# spec:
# replicas: 1
# selector:
# matchLabels:
# app: my-app
# template:
# metadata:
# labels:
# app: my-app
# spec:
# containers:
# - name: backend
# image: my-registry/backend:1.0
# ports:
# - containerPort: 80
# - name: sidecar
# image: sidecar:2.0
# ports:
# - containerPort: 9999
- uses: Charlyzzz/update-k8s-image
with:
manifest-path: 'path/to/my/deployment'
new-image-tag: 'latest'
name: 'backend'
The scripts and documentation in this project are released under the MIT License