Skip to content

Commit ba61aba

Browse files
Allow Docker image push for dependabotchanges branch
1 parent 8697d96 commit ba61aba

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build-docker-image.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
2929

3030
- name: Log in to Azure Container Registry
31-
if: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'hotfix' }}
31+
if: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'hotfix' || github.ref_name == 'dependabotchanges' }}
3232
uses: azure/docker-login@v2
3333
with:
3434
login-server: ${{ env.ACR_LOGIN_SERVER }}
@@ -54,6 +54,9 @@ jobs:
5454
BASE_TAG="demo"
5555
elif [[ "$BRANCH" == "hotfix" ]]; then
5656
BASE_TAG="hotfix"
57+
elif [[ "$BRANCH" == "dependabotchanges" ]]; then
58+
BASE_TAG="dependabotchanges"
59+
5760
else
5861
BASE_TAG="pullrequest-ignore"
5962
fi
@@ -67,7 +70,7 @@ jobs:
6770
with:
6871
context: ./src/ContentProcessor
6972
file: ./src/ContentProcessor/Dockerfile
70-
push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'hotfix' }}
73+
push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'hotfix'|| github.ref_name == 'dependabotchanges' }}
7174
tags: |
7275
${{ steps.registry.outputs.ext_registry }}/contentprocessor:${{ env.BASE_TAG }}
7376
${{ steps.registry.outputs.ext_registry }}/contentprocessor:${{ env.DATE_TAG }}
@@ -77,7 +80,7 @@ jobs:
7780
with:
7881
context: ./src/ContentProcessorAPI
7982
file: ./src/ContentProcessorAPI/Dockerfile
80-
push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'hotfix' }}
83+
push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'hotfix'|| github.ref_name == 'dependabotchanges' }}
8184
tags: |
8285
${{ steps.registry.outputs.ext_registry }}/contentprocessorapi:${{ env.BASE_TAG }}
8386
${{ steps.registry.outputs.ext_registry }}/contentprocessorapi:${{ env.DATE_TAG }}
@@ -87,7 +90,7 @@ jobs:
8790
with:
8891
context: ./src/ContentProcessorWeb
8992
file: ./src/ContentProcessorWeb/Dockerfile
90-
push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'hotfix' }}
93+
push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'hotfix'|| github.ref_name == 'dependabotchanges' }}
9194
tags: |
9295
${{ steps.registry.outputs.ext_registry }}/contentprocessorweb:${{ env.BASE_TAG }}
9396
${{ steps.registry.outputs.ext_registry }}/contentprocessorweb:${{ env.DATE_TAG }}

0 commit comments

Comments
 (0)