Skip to content

Commit c32bee5

Browse files
committed
Update environment URLs to use dynamic variable for deployment environments
1 parent 5114b71 commit c32bee5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/push-default-and-deploy-with-reusable-workflow.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
uses: devopselvis/my-github-actions-presentation/.github/workflows/deploy-to-environment-reusable.yml@main
5656
with:
5757
environment-name: "DEV"
58-
environment-url: "http://my-web-app-please-work-dev.azurewebsites.net/"
58+
environment-url: "https://${{ vars.WEB_APP_NAME }}-dev.azurewebsites.net/"
5959
artifact-name: "myapp"
6060
web-app-name: ${{ vars.WEB_APP_NAME }}
6161
slot-name: "dev"
@@ -66,7 +66,7 @@ jobs:
6666
uses: devopselvis/my-github-actions-presentation/.github/workflows/deploy-to-environment-reusable.yml@main
6767
with:
6868
environment-name: "STAGING"
69-
environment-url: "http://my-web-app-please-work-staging.azurewebsites.net/"
69+
environment-url: "https://${{ vars.WEB_APP_NAME }}-staging.azurewebsites.net/"
7070
artifact-name: "myapp"
7171
web-app-name: ${{ vars.WEB_APP_NAME }}
7272
slot-name: "staging"
@@ -79,7 +79,7 @@ jobs:
7979
uses: devopselvis/my-github-actions-presentation/.github/workflows/deploy-to-environment-reusable.yml@main
8080
with:
8181
environment-name: "PROD"
82-
environment-url: "http://my-web-app-please-work-prod.azurewebsites.net/"
82+
environment-url: "https://${{ vars.WEB_APP_NAME }}-prod.azurewebsites.net/"
8383
artifact-name: "myapp"
8484
web-app-name: ${{ vars.WEB_APP_NAME }}
8585
slot-name: "prod"

.github/workflows/push-default-and-deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ jobs:
9292
runs-on: ubuntu-latest
9393
needs: build-and-test
9494
environment:
95-
name: DEV
96-
url: http://my-web-app-please-work-dev.azurewebsites.net/
97-
95+
name: DEV
96+
url: https://${{ vars.WEB_APP_NAME }}-dev.azurewebsites.net/
97+
9898
steps:
9999
- name: Download artifact
100100
uses: actions/download-artifact@v4
@@ -126,7 +126,7 @@ jobs:
126126
needs: build-and-test
127127
environment:
128128
name: STAGING
129-
url: http://my-web-app-please-work-staging.azurewebsites.net/
129+
url: https://${{ vars.WEB_APP_NAME }}-staging.azurewebsites.net/
130130

131131
steps:
132132
- name: Download artifact
@@ -156,7 +156,7 @@ jobs:
156156
- deploy-to-staging
157157
environment:
158158
name: PROD
159-
url: http://my-web-app-please-work-prod.azurewebsites.net/
159+
url: https://${{ vars.WEB_APP_NAME }}-prod.azurewebsites.net/
160160

161161
steps:
162162
- name: Download artifact

0 commit comments

Comments
 (0)