Skip to content

Commit 371bfaf

Browse files
committed
Update workflow from canonical template
1 parent 3b8175d commit 371bfaf

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/defang.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
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 || '' }}

0 commit comments

Comments
 (0)