Skip to content

Commit

Permalink
Add url to environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jord-Gui committed Nov 14, 2023
1 parent 50a18ce commit fd1693d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
uses: ./.github/workflows/deploy.yml
with:
environment: staging
url: https://staging.sswdory.com
secrets: inherit
needs: build-site

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: "Name of the environment to deploy to"
required: true
type: string
url:
description: "URL of the site"
required: false
type: string

permissions:
id-token: write
Expand All @@ -20,7 +24,9 @@ defaults:
jobs:
deploy-bicep:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
environment:
name: ${{ inputs.environment }}
url: ${{ inputs.url }}
outputs:
storageName: ${{steps.deploy-bicep.outputs.websiteStorageAccountName}}
env:
Expand Down

0 comments on commit fd1693d

Please sign in to comment.