Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ jobs:
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

- name: Get registry
id: registry
run: |
echo "ext_registry=${{ secrets.ACR_LOGIN_SERVER || 'acrlogin.azurecr.io'}}" >> $GITHUB_OUTPUT

- name: Determine Tag Name Based on Branch
id: determine_tag
Expand Down Expand Up @@ -72,8 +77,8 @@ jobs:
file: ./src/backend/Dockerfile
push: ${{ env.TAG != 'pullrequest-ignore' }}
tags: |
${{ secrets.ACR_LOGIN_SERVER }}/macaebackend:${{ env.TAG }}
${{ secrets.ACR_LOGIN_SERVER }}/macaebackend:${{ env.HISTORICAL_TAG }}
${{ steps.registry.outputs.ext_registry }}/macaebackend:${{ env.TAG }}
${{ steps.registry.outputs.ext_registry }}/macaebackend:${{ env.HISTORICAL_TAG }}

- name: Build and optionally push Frontend Docker image
uses: docker/build-push-action@v6
Expand All @@ -82,5 +87,5 @@ jobs:
file: ./src/frontend/Dockerfile
push: ${{ env.TAG != 'pullrequest-ignore' }}
tags: |
${{ secrets.ACR_LOGIN_SERVER }}/macaefrontend:${{ env.TAG }}
${{ secrets.ACR_LOGIN_SERVER }}/macaefrontend:${{ env.HISTORICAL_TAG }}
${{ steps.registry.outputs.ext_registry }}/macaefrontend:${{ env.TAG }}
${{ steps.registry.outputs.ext_registry }}/macaefrontend:${{ env.HISTORICAL_TAG }}
Loading