diff --git a/action.yaml b/action.yaml index f0884b7..72ab5f0 100644 --- a/action.yaml +++ b/action.yaml @@ -14,26 +14,30 @@ inputs: description: "Environment variables deploy as config. Format: 'VAR1 VAR2 VAR3'" required: false default: "" - cwd: - description: "The directory containing the compose file to deploy." + command: + description: "The command to run." required: false - default: "." + default: "compose up" compose-files: description: "The compose files to deploy. Format 'file1 file2 file3'" required: false default: "" + cwd: + description: "The directory containing the compose file to deploy." + required: false + default: "." mode: description: "The deployment mode. Options: 'development', 'staging', 'production'" required: false default: "" + stack: + description: "The stack to deploy." + required: false + default: "" provider: description: "The cloud provider to deploy to. Options: 'aws', 'defang', 'digitalocean', 'gcp'" required: false default: "defang" - command: - description: "The command to run." - required: false - default: "compose up" verbose: description: "Enable verbose output for debugging." required: false @@ -54,6 +58,7 @@ runs: run: | echo "DEFANG_PROVIDER=${{ inputs['provider'] }}" >> $GITHUB_ENV [ -n "$RUNNER_DEBUG" ] && echo "DEFANG_DEBUG=$RUNNER_DEBUG" >> $GITHUB_ENV || true + [ -n "${{ inputs['stack'] }}" ] && echo "DEFANG_STACK=${{ inputs['stack'] }}" >> $GITHUB_ENV || true - name: Login to Defang shell: bash