Skip to content

Commit d53cf53

Browse files
authored
Update Build-deploy-code-docker.yml
1 parent 4046df5 commit d53cf53

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/Build-deploy-code-docker.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,11 @@ jobs:
9696
runs-on: ubuntu-latest
9797
needs: build-binary
9898
environment:
99-
name: 'Development'
99+
name: code
100+
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
101+
100102
outputs:
101-
webapp-url: ${{ steps.set-url.outputs.webapp-url }}
103+
webapp-url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
102104
steps:
103105
- name: Download artifact from build job
104106
uses: actions/download-artifact@v4
@@ -122,9 +124,12 @@ jobs:
122124
runs-on: ubuntu-latest
123125
needs: [build-docker]
124126
environment:
125-
name: production
127+
name: docker
128+
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
129+
126130
outputs:
127-
webapp-url: ${{ steps.set-url.outputs.webapp-url }}
131+
webapp-url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
132+
128133
steps:
129134
- name: Deploy to Azure Web App with Docker
130135
id: deploy-to-webapp
@@ -135,10 +140,6 @@ jobs:
135140
publish-profile: ${{ secrets.AzureAppService_PublishProfile_9b585dbfa0374924ab161fec5b2dea00 }}
136141
images: forsanta/webapi-starter-dotnet8:${{ github.sha }}
137142

138-
- name: Set webapp-url output
139-
id: set-url
140-
run: echo "webapp-url=https://fefezfezf.azurewebsites.net" >> $GITHUB_OUTPUT
141-
142143
check-url-docker:
143144
runs-on: ubuntu-latest
144145
needs: deploy-docker

0 commit comments

Comments
 (0)