defanglabs/Defang Deployment Action

Use Defang to automatically deploy your application to the cloud.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 10, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: defanglabs/defang-github-action@310e2861f679b9c2e662fab544ebe3f64d6d5e2b # v2.4.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
cli-versionThe version or Git ref of the Defang CLI to use. Defaults to the latest stable release.no""
config-env-varsEnvironment variables to deploy as config. Format: 'VAR1 VAR2 VAR3'no""
config-env-vars-initInitialize config variables in this list from environment values if they are not already set. Format: 'VAR1 VAR2 VAR3'no""
config-vars-init-randomInitialize config variables in this list with random values if they are not already set. Format: 'VAR1 VAR2 VAR3'no""
commandThe command to run.nocompose up
compose-filesThe compose files to deploy. Format 'file1 file2 file3'no""
cwdThe directory containing the compose file to deploy.no.
modeThe deployment mode. Options: 'affordable', 'balanced', 'high-availability'. Deprecated in favor of stack:no""
stackThe stack to deploy.no""
projectThe project to deploy. If not specified, the CLI will determine the project name from the current directory or compose file.no""
providerThe cloud provider to deploy to. Options: 'aws', 'azure', 'digitalocean', 'gcp'. If not specified, the CLI will determine the appropriate provider. Deprecated in favor of stack:no""
verboseEnable verbose output for debugging.nofalse
allow-upgradeAllow upgrading the CD image and Pulumi version to the latest availablenofalse
capture-outputCapture the command's stdout as an output. Disable for large deployments to avoid GitHub Actions memory limits.notrue
namedescription
stdoutThe stdout of the command. Only available when capture-output is 'true'.