Skip to content

Commit d30d5d0

Browse files
Update Build-Test-And-Deploy.yml
1 parent 9628d00 commit d30d5d0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

.github/workflows/Build-Test-And-Deploy.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,16 @@ jobs:
9999
docker image ls -a
100100
101101
- name: Log in to container registry
102-
if: github.event_name != 'pull_request_target' && github.event_name != 'pull_request'
103102
uses: docker/login-action@v3
104103
with:
105104
registry: ${{ vars.DEVCONTAINER_REGISTRY }}
106105
username: ${{ secrets.ESSENTIALCSHARP_ACR_USERNAME }}
107106
password: ${{ secrets.ESSENTIALCSHARP_ACR_PASSWORD }}
108107

109108
- name: Push Image to Container Registry
110-
if: github.event_name != 'pull_request_target' && github.event_name != 'pull_request'
111109
run: docker push --all-tags ${{ vars.DEVCONTAINER_REGISTRY }}/essentialcsharpweb
112110

113111
- name: Create and Deploy to Container App
114-
if: github.event_name != 'pull_request_target' && github.event_name != 'pull_request'
115112
uses: azure/CLI@v2
116113
env:
117114
CONTAINER_APP_NAME: ${{ vars.CONTAINER_APP_NAME }}
@@ -187,15 +184,13 @@ jobs:
187184
docker image ls -a
188185
189186
- name: Log in to container registry
190-
if: github.event_name != 'pull_request_target' && github.event_name != 'pull_request'
191187
uses: docker/login-action@v3
192188
with:
193189
registry: ${{ vars.PRODCONTAINER_REGISTRY }}
194190
username: ${{ secrets.ESSENTIALCSHARP_ACR_USERNAME }}
195191
password: ${{ secrets.ESSENTIALCSHARP_ACR_PASSWORD }}
196192

197193
- name: Push Image to Container Registry
198-
if: github.event_name != 'pull_request_target' && github.event_name != 'pull_request'
199194
run: docker push --all-tags ${{ vars.PRODCONTAINER_REGISTRY }}/essentialcsharpweb
200195

201196
- name: Create and Deploy to Container App

0 commit comments

Comments
 (0)