File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 77 pull_request :
88 branches :
99 - ' **'
10- workflow_dispatch :
10+ workflow_dispatch :
1111 schedule :
1212 - cron : ' 0 0 * * *'
1313
3030 config-env-vars : " DEFANG_GH_ACTION_TEST_MESSAGE"
3131 cwd : " ./test"
3232 compose-files : " compose.yaml compose.prod.yaml"
33- behavior : " staging"
33+ mode : " staging"
3434 env :
3535 DEFANG_GH_ACTION_TEST_MESSAGE : ${{ secrets.MESSAGE }}
3636 DEFANG_INTERNAL_TEST : dfng-test
4343 config-env-vars : " "
4444 cwd : " ./test"
4545 compose-files : " "
46- behavior : " "
46+ mode : " "
4747 env :
4848 DEFANG_INTERNAL_TEST : dfng-test
4949
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ inputs:
2222 description : " The compose files to deploy. Format 'file1 file2 file3'"
2323 required : false
2424 default : " "
25- behavior :
26- description : " The behavior of the deployment. Options: 'development', 'staging', 'production'"
25+ mode :
26+ description : " The deployment mode . Options: 'development', 'staging', 'production'"
2727 required : false
28- default : " development "
28+ default : " "
2929
3030runs :
3131 using : " composite"
@@ -69,12 +69,12 @@ runs:
6969 params+=("-f")
7070 params+=("$filename")
7171 done
72- if [[ -n "${{ inputs['behavior '] }}" ]]; then
73- params+=("--behavior =${{ inputs['behavior '] }}")
72+ if [[ -n "${{ inputs['mode '] }}" ]]; then
73+ params+=("--mode =${{ inputs['mode '] }}")
7474 fi
7575
7676 if [[ "${DEFANG_INTERNAL_TEST}" == "dfng-test" ]]; then
77- # `defang compose up --dry-run` is used for testing as --behavior flag is only available to the "compose up" command
77+ # `defang compose up --dry-run` is used for testing as --mode flag is only available to the "compose up" command
7878 echo defang compose "${params[@]}" up --dry-run
7979 defang compose "${params[@]}" up --dry-run
8080 else
You can’t perform that action at this time.
0 commit comments