Skip to content

About

A GitHub action that will enable you to deploy an overlay to kubernetes.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

deploy-with-kustomize

Builds a kustomize overlay and applies it with kubectl. It can set image tags and a name suffix first, and wait for rollouts afterwards. kubectl and kustomize are downloaded and checked against their published SHA-256 checksums.

Configure cluster access (KUBECONFIG or a login action) before this step.

Usage

- uses: coquer/deploy-with-kustomize@v1.0.2
  with:
    overlay: ./kubernetes/overlays/test
    registry: myregistry.azurecr.io
    images: |
      my-app:${{ github.sha }}
      my-worker:${{ github.sha }}
    namesuffix: staging
    monitoring: true

Each images line changes <registry>/<name>:latest to <registry>/<name>:<tag> in the overlay.

Inputs

Name Default Description
overlay required Path to the overlay
registry Registry prefix for images
images name:tag per line
namesuffix Suffix added to all resource names (-<value>)
monitoring false Wait for kubectl rollout status on Deployments, StatefulSets and DaemonSets (600s each)
kustomize 5.3.0 kustomize version
kubectl 1.23.6 kubectl version

Output

manifest: path to the rendered manifest that was applied. It's written to RUNNER_TEMP, not the workspace, because it can contain Secrets.

Development

npm ci
npm test       # type check + unit tests
npm run build  # build dist/

Pushes to master rebuild and commit dist/ automatically.

About

A GitHub action that will enable you to deploy an overlay to kubernetes.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages