File tree Expand file tree Collapse file tree 2 files changed +34
-30
lines changed
Expand file tree Collapse file tree 2 files changed +34
-30
lines changed Original file line number Diff line number Diff line change 66 - main
77 pull_request :
88 branches :
9- - ' ** '
9+ - " ** "
1010 workflow_dispatch :
11- schedule :
12- - cron : ' 0 0 * * *'
11+ # schedule:
12+ # - cron: " 0 0 * * *" # daily at midnight
1313
1414jobs :
1515 test :
@@ -19,31 +19,35 @@ jobs:
1919 id-token : write
2020
2121 steps :
22- - name : Checkout Repo
23- uses : actions/checkout@v4
22+ - name : Checkout Repo
23+ uses : actions/checkout@v4
2424
25- - name : Deploy
26- uses : ./
27- continue-on-error : true # Ignore dry run error
28- with :
29- cli-version : v0.5.40
30- config-env-vars : " DEFANG_GH_ACTION_TEST_MESSAGE"
31- cwd : " ./test"
32- compose-files : " compose.yaml compose.prod.yaml"
33- mode : " "
34- command : " compose up --dry-run"
35- env :
36- DEFANG_GH_ACTION_TEST_MESSAGE : ${{ secrets.MESSAGE }}
25+ - name : Deploy
26+ uses : ./
27+ with :
28+ cli-version : v0.5.40
29+ config-env-vars : |
30+ DEFANG_GH_ACTION_TEST_ENV
31+ DEFANG_GH_ACTION_TEST_MESSAGE
32+ cwd : " ./test"
33+ compose-files : |
34+ compose.yaml
35+ compose.prod.yaml
36+ mode : " "
37+ command : " compose help"
38+ env :
39+ DEFANG_GH_ACTION_TEST_ENV : " foo"
40+ DEFANG_GH_ACTION_TEST_MESSAGE : ${{ secrets.MESSAGE }}
3741
38- - name : Deploy-Empty-Params
39- uses : ./
40- continue-on-error : true # Ignore dry run error
41- with :
42- config-env-vars : " "
43- cwd : " ./test"
44- compose-files : " "
45- mode : " staging"
46- command : " compose up --dry-run --project-name github-action-test"
42+ - name : Deploy-Empty-Params
43+ uses : ./
44+ continue-on-error : true # Ignore dry run error
45+ with :
46+ config-env-vars : " "
47+ cwd : " ./test"
48+ compose-files : " "
49+ mode : " staging"
50+ command : " compose up --dry-run --project-name github-action-test"
4751
48- - name : Teardown
49- run : defang config rm DEFANG_GH_ACTION_TEST_MESSAGE
52+ - name : Teardown
53+ run : defang config rm DEFANG_GH_ACTION_TEST_MESSAGE
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ branding:
77
88inputs :
99 cli-version :
10- description : " The version of the Defang CLI to use."
10+ description : " The version of the Defang CLI to use. Defaults to the latest stable release. "
1111 required : false
1212 default : " "
1313 config-env-vars :
@@ -27,7 +27,7 @@ inputs:
2727 required : false
2828 default : " "
2929 provider :
30- description : " The cloud provider to deploy to. Options: 'aws', 'defang', 'digitalocean'"
30+ description : " The cloud provider to deploy to. Options: 'aws', 'defang', 'digitalocean', 'gcp' "
3131 required : false
3232 default : " defang"
3333 command :
You can’t perform that action at this time.
0 commit comments