diff --git a/.github/workflows/backend_ci.yml b/.github/workflows/backend_ci.yml index f81b2e5f..5d59b5fd 100644 --- a/.github/workflows/backend_ci.yml +++ b/.github/workflows/backend_ci.yml @@ -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 @@ -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