Skip to content

Github action to update the image of a kubernetes deployment

Notifications You must be signed in to change notification settings

resuelve/deploy-to-kubernetes-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy to kubernetes action

This action will run kubectl to update the given deployment container with a new image

Inputs

Input Required Description
kube_config yes cluster kubeconfig file, encoded in base64
namespace yes deployment's namespace to be updated
name yes deployment's name to be updated
image yes image name what will be used in the update, example: org/repo:version
container yes deployment's container which will be updated with new image
external_secret no If defined, it will be forced to fetch latest values from secrets provider before the image is updated in the deployment

Usage

- name: Update deployment container image
  uses: resuelve/[email protected]
    with:
      cert: ${{ secrets.KUBERNETES_CERT }}
      server: ${{ secrets.KUBERNETES_SERVER }}
      token: ${{ secrets.KUBERNETES_TOKEN }}
      namespace: default
      name: my_project
      image: new_image_name
      container: backend
      external_secret: app-external-secret
- name: Update deployment container image
  uses: resuelve/deploy-to-kubernetes-action@v2
    with:
      kube_config: ${{ secrets.KUBERNETES_KUBE_CONFIG }}
      namespace: default
      name: my_project
      image: new_image_name
      container: backend
      external_secret: app-external-secret

Enjoy 🎉

About

Github action to update the image of a kubernetes deployment

Resources

Stars

Watchers

Forks

Packages

No packages published