ci: Refactor Docker workflow#1032
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors the GitHub Actions Docker build/deploy workflows to standardize Azure Container Registry (ACR) references on repository variables (vars.ACR_TEST_LOGIN_SERVER) and simplifies how the Docker build job is triggered/controlled from the deployment orchestrator.
Changes:
- Updated Docker image tagging and ACR endpoint usage across build/deploy workflows to use
vars.ACR_TEST_LOGIN_SERVERinstead ofsecrets.ACR_TEST_LOGIN_SERVER. - Simplified
job-docker-build.ymlby removing workflow_call inputs and enabling directworkflow_dispatch, while shifting the “should we build?” gating to the orchestrator. - Updated
deploy-orchestrator.ymlreusable workflow invocation accordingly.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/job-docker-build.yml | Removes unused inputs, adds workflow_dispatch, updates ACR login/tagging to use vars.ACR_TEST_LOGIN_SERVER. |
| .github/workflows/job-deploy-windows.yml | Switches ACR endpoint from secret to repo variable when configuring AZD env. |
| .github/workflows/job-deploy-linux.yml | Switches ACR endpoint from secret to repo variable when configuring AZD env. |
| .github/workflows/deploy-orchestrator.yml | Moves docker-build gating to the orchestrator job and removes no-longer-valid inputs passed to the reusable build workflow. |
Comments suppressed due to low confidence (1)
.github/workflows/job-docker-build.yml:107
- In the summary step,
ACR_NAME=$(echo "${{ vars.ACR_TEST_LOGIN_SERVER }}")actually setsACR_NAMEto the login server, not the registry name. Given the earlieraz acr loginstep uses the registry name, this reuses the same variable name with a different meaning. Rename this to something likeACR_LOGIN_SERVERand reference that in the emitted image URLs.
ACR_NAME=$(echo "${{ vars.ACR_TEST_LOGIN_SERVER }}")
echo "## 🐳 Docker Build Job Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "| Field | Value |" >> $GITHUB_STEP_SUMMARY
echo "|-------|--------|" >> $GITHUB_STEP_SUMMARY
echo "| **Job Status** | ${{ job.status == 'success' && '✅ Success' || '❌ Failed' }} |" >> $GITHUB_STEP_SUMMARY
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Roopan-Microsoft
approved these changes
Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request updates the GitHub Actions workflows related to Docker image building and deployment, primarily to standardize the use of
vars.ACR_TEST_LOGIN_SERVERinstead ofsecrets.ACR_TEST_LOGIN_SERVERand to simplify workflow triggers and inputs. The changes aim to improve maintainability and security by using repository variables and streamlining workflow configuration.Key changes include:
Standardization of Azure Container Registry (ACR) Reference:
secrets.ACR_TEST_LOGIN_SERVERwithvars.ACR_TEST_LOGIN_SERVERin the Docker build and deployment workflows, ensuring consistent use of repository variables for the ACR login server across Linux, Windows, and Docker build jobs. [1] [2] [3] [4] [5] [6] [7]Workflow Configuration and Trigger Simplification:
trigger_type,build_docker_image) fromjob-docker-build.ymland instead configured the workflow to be triggered directly byworkflow_dispatch. Updated the workflow name for clarity..github/workflows/deploy-orchestrator.ymlto match the new trigger and input handling.These changes make the workflows easier to maintain and align with best practices for managing sensitive information and workflow triggers.
Does this introduce a breaking change?
How to Test
What to Check
Verify that the following are valid
Other Information