File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 defang :
2323 name : Defang ${{ github.event.inputs.action || 'up' }} ${{
2424 github.event.inputs.stack || 'default stack' }}
25- environment : defang-${{ github.event.inputs.stack || 'production' }}
25+ environment :
26+ name : defang-${{ github.event.inputs.stack || 'production' }}
27+ url : ${{ steps.deploy.outputs.endpoint }}
2628 runs-on : ubuntu-latest
2729 timeout-minutes : 70
2830 permissions :
@@ -39,16 +41,12 @@ jobs:
3941
4042 - name : Defang ${{ github.event.inputs.action || 'up' }} ${{
4143 github.event.inputs.stack || 'default stack' }}
44+ id : deploy
4245 uses : DefangLabs/defang-github-action@v2
4346 with :
4447 command : ${{ github.event.inputs.action || 'up' }}
4548 stack : ${{ github.event.inputs.stack || '' }}
49+ summary : ${{ (github.event.inputs.action || 'up') != 'down' }}
4650 config-env-vars : DATABASE_URL
4751 env :
4852 DATABASE_URL : ${{ secrets.DATABASE_URL }}
49-
50- - name : Deployment Summary
51- uses : DefangLabs/defang-github-action@v2
52- with :
53- command : services
54- stack : ${{ github.event.inputs.stack || '' }}
You can’t perform that action at this time.
0 commit comments