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.
- 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: trueEach images line changes <registry>/<name>:latest to <registry>/<name>:<tag> in the overlay.
| 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 |
manifest: path to the rendered manifest that was applied. It's written to RUNNER_TEMP, not the workspace, because it can contain Secrets.
npm ci
npm test # type check + unit tests
npm run build # build dist/Pushes to master rebuild and commit dist/ automatically.