File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
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
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
You can’t perform that action at this time.
0 commit comments