Skip to content

fix the warnings in CI pipeline#183

Open
hippogr wants to merge 9 commits into
devfrom
ruigao/fix-cicd
Open

fix the warnings in CI pipeline#183
hippogr wants to merge 9 commits into
devfrom
ruigao/fix-cicd

Conversation

@hippogr
Copy link
Copy Markdown
Contributor

@hippogr hippogr commented Jun 4, 2026

Fix the warnings during the build and deploy process in CI pipeline

Local auth (username/password) has been disabled on the ACR registry.
Switch CI to use managed identity with az acr login instead.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 4, 2026 03:14
@hippogr hippogr requested a review from a team as a code owner June 4, 2026 03:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the CI image-push flow to authenticate to Azure Container Registry (ACR) using an Azure managed identity (to align with ACR local auth being disabled).

Changes:

  • Update pai_build.py to clear docker username/password when a managed identity is provided.
  • Update the CI workflow to az login --identity and pass --managed-identity-id to the push command.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
build/pai_build.py Clears docker username/password when managed identity is provided for registry auth.
.github/workflows/build-deploy-changes.yaml Logs in with managed identity and passes the managed identity client ID into the image push step.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread build/pai_build.py Outdated
This comment will be reverted after CI verification.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
To inspect current config structure before updating managed identity.
Will be reverted after verification.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
…y in config

Removed debug steps, CLI --managed-identity-id override, and test
trigger. ACR auth now uses managed-identity-id from config secret.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
Will be reverted after verification.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
…dentity

- Remove explicit az login step before ACR push (docker_login handles it
  via managed-identity-id from config)
- Restore pai_build.py to original state
- Add shell: bash for GHCR push step to fix [[ syntax
- Keep watchdog trigger for CI verification

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
- Upgrade actions/checkout@v4 to @v5 for Node.js 24 compatibility
- Add shell: bash to steps using [[ ]] syntax
- Fix "is" string comparison to == in machine.py
- Fix invalid escape sequence in pai_version.py

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
@hippogr hippogr changed the title fix: use managed identity for ACR push in CI pipeline fix the warnings in CI pipeline Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants