Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 2.04 KB

README.md

File metadata and controls

44 lines (37 loc) · 2.04 KB

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 🎉