matchory/Docker Swarm Deployment Action

Deploy your Docker Swarm apps in seconds. 🚀

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
stack-nameName of the stack to deploy. Defaults to the repository name.
versionVersion for the deployment. Defaults to the tag name being built, or the commit hash.
compose-filePath to the Docker Compose file(s) to use for deployment relative to the repository root. Separate multiple files with colons (`:`). If omitted, the action will look for any of the following file variants, in order: - `compose.production.yaml` - `compose.production.yml` - `compose.prod.yaml` - `compose.prod.yml` - `compose.yaml` - `compose.yml` - `docker-compose.production.yaml` - `docker-compose.production.yml` - `docker-compose.prod.yaml` - `docker-compose.prod.yml` - `docker-compose.yaml` - `docker-compose.yml` - `.docker/compose.yaml` - `.docker/compose.yml` - `.docker/docker-compose.yaml` - `.docker/docker-compose.yml` - `docker/compose.yaml` - `docker/compose.yml` - `docker/docker-compose.yaml` - `docker/docker-compose.yml`
variablesVariables to pass to the deployment as a list of key-value pairs in the format `KEY=value`, separated by newlines, or as JSON object (e.g., from `toJSON(vars)`). Variables override those in the process environment and can be used to pass through secrets or configs.""
secretsVariables to pass to the deployment as a list of key-value pairs in the format `KEY=value`, separated by newlines, or as JSON object (e.g., from `toJSON(secrets)`). Secrets have higher priority than variables and override those in the process environment.""
exclude-variablesList of variable names to exclude from the final deployment, separated by newlines. Applies to variables from environment, variables, and secrets sources. Does not affect extra-variables which have highest priority.""
extra-variablesAdditional variables to pass to the deployment as a list of key-value pairs in the format `KEY=value`, separated by newlines, or as JSON object. These have the highest priority and override all other variable sources.""
env-var-prefixPrefix filter for environment variables to automatically load as secrets.DEPLOYMENT
manage-variablesWhether to automatically manage configs and secrets. If set to `false`, the action will leave the configs and secrets in the stack untouched.true
strict-variablesWhether to disable automatic fallback to matching environment variables for file variable sources that don't exist in the working directory. This is useful for ensuring that the action fails if a file variable source is not found.true
strict-compatibilityWhether to fail the deployment when the Compose Specification contains features that Docker Swarm does not support and cannot be translated (e.g. develop, profiles, provider). When false (the default), such features are stripped or translated with a warning instead of failing.false
key-interpolationWhether to enable interpolation of environment variables within keys in the Compose Specification, in addition to values. This is not supported by the Compose Spec, and thus needs to be enabled explicitly.false
monitorWhether to monitor the stack after the deployment is complete. If an error occurs, the action will fail.false
monitor-timeoutTimeout for post-deployment monitoring in seconds.300
monitor-intervalInterval for post-deployment monitoring checks in seconds.5
health-check-warningsWhether to emit warnings for missing or suspect health check configurations in compose services.true
namedescription
statusDeployment status
compose-specDocker Compose spec used for deployment
stack-nameName of the stack deployed
versionVersion of the stack deployed
service-logsLogs of a failed service after deployment