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
7 changes: 5 additions & 2 deletions .github/workflows/backend_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ env:
# Dynamically generate image tags based on Git SHA and GitHub Run ID
# This provides unique, traceable tags for each image build
IMAGE_TAG: ${{ github.sha }}-${{ github.run_id }}
ACR_NAME: ${{ secrets.AZURE_CONTAINER_REGISTRY_NAME }}

jobs:
# Job 1: Run tests and linting for all backend services
Expand Down Expand Up @@ -129,8 +130,10 @@ jobs:
creds: ${{ secrets.AZURE_CREDENTIALS }} # Needs to be set as a GitHub Secret (Service Principal JSON)

# Login to Azure Container Registry (ACR)
- name: Login to Azure Container Registry
run: az acr login --name ${{ env.ACR_LOGIN_SERVER }}
- name: ACR login (AAD, short name)
run: |
echo "az acr login --name $ACR_NAME"
az acr login --name "$ACR_NAME"

# Build and Push Docker image for Product Service
- name: Build and Push Product Service Image
Expand Down