Skip to content

Commit 628ec4d

Browse files
edwardrfedw-defang
andauthored
Add provider input, defaults to defang (#15)
Co-authored-by: Edward J <[email protected]>
1 parent 1a65189 commit 628ec4d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

action.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ inputs:
2626
description: "The deployment mode. Options: 'development', 'staging', 'production'"
2727
required: false
2828
default: ""
29+
provider:
30+
description: "The cloud provider to deploy to. Options: 'aws', 'defang'"
31+
required: false
32+
default: "defang"
2933

3034
runs:
3135
using: "composite"
@@ -75,10 +79,10 @@ runs:
7579
7680
if [[ "${DEFANG_INTERNAL_TEST}" == "dfng-test" ]]; then
7781
# `defang compose up --dry-run` is used for testing as --mode flag is only available to the "compose up" command
78-
echo defang compose "${params[@]}" up --dry-run
79-
defang compose "${params[@]}" up --dry-run
82+
echo defang --provider=${{ inputs['provider'] }} compose "${params[@]}" up --dry-run
83+
defang --provider=${{ inputs['provider'] }} compose "${params[@]}" up --dry-run
8084
else
81-
echo defang compose "${params[@]}" up
82-
defang compose "${params[@]}" up
85+
echo defang --provider=${{ inputs['provider'] }} compose "${params[@]}" up
86+
defang --provider=${{ inputs['provider'] }} compose "${params[@]}" up
8387
fi
8488
working-directory: ${{ inputs.cwd }}

0 commit comments

Comments
 (0)