File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 4242 - name : Get current date
4343 id : date
4444 run : echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
45+
46+ - name : Get registry
47+ id : registry
48+ run : |
49+ echo "ext_registry=${{ secrets.ACR_LOGIN_SERVER || 'acrlogin.azurecr.io'}}" >> $GITHUB_OUTPUT
4550
4651 - name : Determine Tag Name Based on Branch
4752 id : determine_tag
6469 RUN_ID=${{ github.run_number }}
6570 # Create historical tag using TAG, DATE_TAG, and RUN_ID
6671 echo "HISTORICAL_TAG=${{ env.TAG }}_${DATE_TAG}_${RUN_ID}" >> $GITHUB_ENV
72+
73+
6774
6875 - name : Build and optionally push Backend Docker image
6976 uses : docker/build-push-action@v6
7279 file : ./src/backend/Dockerfile
7380 push : ${{ env.TAG != 'pullrequest-ignore' }}
7481 tags : |
75- ${{ secrets.ACR_LOGIN_SERVER }}/macaebackend:${{ env.TAG }}
76- ${{ secrets.ACR_LOGIN_SERVER }}/macaebackend:${{ env.HISTORICAL_TAG }}
82+ ${{ steps.registry.outputs.ext_registry }}/macaebackend:${{ env.TAG }}
83+ ${{ steps.registry.outputs.ext_registry }}/macaebackend:${{ env.HISTORICAL_TAG }}
7784
7885 - name : Build and optionally push Frontend Docker image
7986 uses : docker/build-push-action@v6
8289 file : ./src/frontend/Dockerfile
8390 push : ${{ env.TAG != 'pullrequest-ignore' }}
8491 tags : |
85- ${{ secrets.ACR_LOGIN_SERVER }}/macaefrontend:${{ env.TAG }}
86- ${{ secrets.ACR_LOGIN_SERVER }}/macaefrontend:${{ env.HISTORICAL_TAG }}
92+ ${{ steps.registry.outputs.ext_registry }}/macaefrontend:${{ env.TAG }}
93+ ${{ steps.registry.outputs.ext_registry }}/macaefrontend:${{ env.HISTORICAL_TAG }}
You can’t perform that action at this time.
0 commit comments