From b62c7cd76fae0bfeb58da2f79895092b702802a3 Mon Sep 17 00:00:00 2001 From: cyber-Elvis Date: Sun, 5 Oct 2025 11:22:50 +1100 Subject: [PATCH] ci: use az acr login --name (short name) and show in logs --- .github/workflows/backend_ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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