Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Update k8s image

Actions
Updates a container tag inside a Kubernetes manifest
v1.2
Pre-release
Star (3)

update-k8s-image action

This action prints modifies a Kubernetes deployment file by updating a container image version.

Usage

- uses: Charlyzzz/update-k8s-image
  with:
    # Path to the yaml manifest. Required.
    manifest-path: ''

    # Value that will replace current image tag. Required
    new-image-tag: ''

    # Image name used to disambiguate specs. Required.
    name: ''

Scenarios

Set backend version to latest

# 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'

License

The scripts and documentation in this project are released under the MIT License

Update k8s image is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Updates a container tag inside a Kubernetes manifest
v1.2
Pre-release

Update k8s image is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.