Deploy action configuration

The available configuration options for the Nais deploy GitHub action.

Environment variableDefaultDescription
CLUSTER(required)Which Nais cluster to deploy into.
DRY_RUNfalseIf true, run templating and validate input, but do not actually make any requests.
ENVIRONMENT(auto-detect)The environment to be shown in GitHub Deployments. Defaults to CLUSTER:NAMESPACE for the resource to be deployed if not specified, otherwise falls back to CLUSTER if multiple namespaces exist in the given resources.
OWNER(auto-detect)Owner of the repository making the request.
PRINT_PAYLOADfalseIf true, print templated resources to standard output.
QUIETfalseIf true, suppress all informational messages.
REFmaster (auto-detect)Commit reference of the deployment. Shown in GitHub's interface.
REPOSITORY(auto-detect)Name of the repository making the request.
RESOURCE(required)Comma-separated list of files containing Kubernetes resources. Must be JSON or YAML format.
RETRYtrueAutomatically retry deploying if deploy service is unavailable.
TEAM(auto-detect)Team making the deployment.
TELEMETRYLets nais/docker-build-push send telemetry that is used to calculate more precise lead time for deploy.
TIMEOUT10mTime to wait for deployment completion, especially when using WAIT.
VARComma-separated list of template variables in the form key=value. Will overwrite any identical template variable in the VARS file.
VARS/dev/nullFile containing template variables. Will be interpolated with the $RESOURCE file. Must be JSON or YAML format.
WAITtrueBlock until deployment has completed with either success, failure or error state.
WORKLOAD_IMAGEUse this image in a companion Image resource.
WORKLOAD_NAME(auto-detect)Name of workload.

Note that OWNER and REPOSITORY corresponds to the two parts of a full repository identifier. If that name is navikt/myapplication, those two variables should be set to navikt and myapplication, respectively.