File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ workflow_dispatch :
8+ inputs :
9+ action :
10+ description : " Whether to deploy up or down"
11+ required : true
12+ default : " up"
13+ type : choice
14+ options :
15+ - up
16+ - down
17+ stack :
18+ description : " The stack to deploy up or down. (Leave blank for default)"
19+ default : " "
720
821jobs :
9- deploy :
22+ defang :
23+ name : Defang ${{ github.event.inputs.action || 'up' }} ${{
24+ github.event.inputs.stack || 'default stack' }}
25+ environment : production
1026 runs-on : ubuntu-latest
1127 permissions :
1228 contents : read
1329 id-token : write
1430
31+ concurrency :
32+ cancel-in-progress : false
33+ group : deploy-${{ github.event.inputs.stack || 'default' }}
34+
1535 steps :
16- - name : Checkout Repo
17- uses : actions/checkout@v4
36+ - name : Checkout Repo
37+ uses : actions/checkout@v4
38+
39+ - name : Defang ${{ github.event.inputs.action || 'up' }} ${{
40+ github.event.inputs.stack || 'default stack' }}
41+ uses : DefangLabs/defang-github-action@v1.4.0
42+ with :
43+ command : ${{ github.event.inputs.action || 'up' }}
44+ stack : ${{ github.event.inputs.stack || '' }}
45+ config-vars-init-random : POSTGRES_PASSWORD SECRET_KEY
46+ env :
47+ POSTGRES_PASSWORD : ${{ secrets.POSTGRES_PASSWORD }}
48+ SECRET_KEY : ${{ secrets.SECRET_KEY }}
1849
19- - name : Deploy
20- uses : DefangLabs/defang-github-action@v1.3.2
21- with :
22- config-env-vars : SECRET_KEY POSTGRES_PASSWORD
23- env :
24- SECRET_KEY : ${{ secrets.SECRET_KEY }}
25- POSTGRES_PASSWORD : ${{ secrets.POSTGRES_PASSWORD }}
50+ - name : Deployment Summary
51+ uses : DefangLabs/defang-github-action@v1.4.0
52+ with :
53+ command : services
54+ stack : ${{ github.event.inputs.stack || '' }}
You can’t perform that action at this time.
0 commit comments