Skip to content

Commit

Permalink
Add provider input, defaults to defang (#15)
Browse files Browse the repository at this point in the history
Co-authored-by: Edward J <[email protected]>
  • Loading branch information
edwardrf and edw-defang committed Sep 12, 2024
1 parent 1a65189 commit 628ec4d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ inputs:
description: "The deployment mode. Options: 'development', 'staging', 'production'"
required: false
default: ""
provider:
description: "The cloud provider to deploy to. Options: 'aws', 'defang'"
required: false
default: "defang"

runs:
using: "composite"
Expand Down Expand Up @@ -75,10 +79,10 @@ runs:
if [[ "${DEFANG_INTERNAL_TEST}" == "dfng-test" ]]; then
# `defang compose up --dry-run` is used for testing as --mode flag is only available to the "compose up" command
echo defang compose "${params[@]}" up --dry-run
defang compose "${params[@]}" up --dry-run
echo defang --provider=${{ inputs['provider'] }} compose "${params[@]}" up --dry-run
defang --provider=${{ inputs['provider'] }} compose "${params[@]}" up --dry-run
else
echo defang compose "${params[@]}" up
defang compose "${params[@]}" up
echo defang --provider=${{ inputs['provider'] }} compose "${params[@]}" up
defang --provider=${{ inputs['provider'] }} compose "${params[@]}" up
fi
working-directory: ${{ inputs.cwd }}

0 comments on commit 628ec4d

Please sign in to comment.