|
30 | 30 | uses: docker/setup-buildx-action@v1 |
31 | 31 |
|
32 | 32 | - name: Log in to Azure Container Registry |
33 | | - if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' ) }} |
34 | | - uses: azure/docker-login@v2 |
| 33 | + if: ${{ (github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo')) || (github.event_name == 'workflow_dispatch' && (github.ref_name == 'dependabotchanges'||github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo')) }} |
| 34 | + uses: azure/docker-login@v2 |
35 | 35 | with: |
36 | 36 | login-server: ${{ secrets.ACR_LOGIN_SERVER }} |
37 | 37 | username: ${{ secrets.ACR_USERNAME }} |
|
54 | 54 | echo "tagname=dev" >> $GITHUB_OUTPUT |
55 | 55 | elif [[ "${{ github.ref_name }}" == "demo" ]]; then |
56 | 56 | echo "tagname=demo" >> $GITHUB_OUTPUT |
| 57 | + elif [[ "${{ github.ref_name }}" == "dependabotchanges" ]]; then |
| 58 | + echo "tagname=dependabotchanges" >> $GITHUB_OUTPUT |
57 | 59 | else |
58 | 60 | echo "tagname=default" >> $GITHUB_OUTPUT |
59 | 61 | |
|
63 | 65 | with: |
64 | 66 | context: ./src/App |
65 | 67 | file: ./src/App/WebApp.Dockerfile |
66 | | - push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' }} |
| 68 | + push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'dependabotchanges' }} |
67 | 69 | tags: | |
68 | 70 | ${{ secrets.ACR_LOGIN_SERVER }}/km-app:${{ steps.determine_tag.outputs.tagname }} |
69 | 71 | ${{ secrets.ACR_LOGIN_SERVER }}/km-app:${{ steps.determine_tag.outputs.tagname }}_${{ steps.date.outputs.date }}_${{ github.run_number }} |
|
73 | 75 | with: |
74 | 76 | context: ./src/api/km-rag-function |
75 | 77 | file: ./src/api/km-rag-function/Dockerfile |
76 | | - push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' }} |
| 78 | + push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'dependabotchanges' }} |
77 | 79 | tags: | |
78 | 80 | ${{ secrets.ACR_LOGIN_SERVER }}/km-rag-function:${{ steps.determine_tag.outputs.tagname }} |
79 | 81 | ${{ secrets.ACR_LOGIN_SERVER }}/km-rag-function:${{ steps.determine_tag.outputs.tagname }}_${{ steps.date.outputs.date }}_${{ github.run_number }} |
|
83 | 85 | with: |
84 | 86 | context: ./src/api/km-charts-function |
85 | 87 | file: ./src/api/km-charts-function/Dockerfile |
86 | | - push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' }} |
| 88 | + push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'dependabotchanges' }} |
87 | 89 | tags: | |
88 | 90 | ${{ secrets.ACR_LOGIN_SERVER }}/km-charts-function:${{ steps.determine_tag.outputs.tagname }} |
89 | 91 | ${{ secrets.ACR_LOGIN_SERVER }}/km-charts-function:${{ steps.determine_tag.outputs.tagname }}_${{ steps.date.outputs.date }}_${{ github.run_number }} |
0 commit comments