Skip to content

Commit b356137

Browse files
Update docker-build-and-push.yml
1 parent 8405643 commit b356137

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/docker-build-and-push.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
username: ${{ secrets.ACR_USERNAME }}
3030
password: ${{ secrets.ACR_PASSWORD }}
3131

32-
- name: Log in to Azure Container Registry (Dev/Demo)
33-
if: ${{ github.ref_name == 'dev' || github.ref_name == 'demo' }}
32+
- name: Log in to Azure Container Registry (Dev/Demo/Dependabotchanges)
33+
if: ${{ github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'dependabotchanges' }}
3434
uses: azure/docker-login@v2
3535
with:
3636
login-server: ${{ secrets.ACR_DEV_LOGIN_SERVER }}
@@ -46,6 +46,8 @@ jobs:
4646
echo "TAG=dev" >> $GITHUB_ENV
4747
elif [[ "${{ github.ref }}" == "refs/heads/demo" ]]; then
4848
echo "TAG=demo" >> $GITHUB_ENV
49+
elif [[ "${{ github.ref }}" == "refs/heads/dependabotchanges" ]]; then
50+
echo "TAG=dependabotchanges" >> $GITHUB_ENV
4951
fi
5052
5153
- name: Build and push Docker image
@@ -55,7 +57,7 @@ jobs:
5557
docker push ${{ secrets.ACR_LOGIN_SERVER }}/webapp:${{ env.TAG }}
5658
5759
- name: Build and push Docker image (Dev/Demo)
58-
if: ${{ github.ref_name == 'dev' || github.ref_name == 'demo' }}
60+
if: ${{ github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'dependabotchanges' }}
5961
run: |
6062
docker build -t ${{ secrets.ACR_LOGIN_SERVER }}/webapp:latest -f WebApp.Dockerfile .
6163
docker push ${{ secrets.ACR_LOGIN_SERVER }}/webapp:latest

0 commit comments

Comments
 (0)