Skip to content

devops: move docker publishing to Azure DevOps - #1986

Merged
Yury Semikhatsky (yury-s) merged 4 commits into
microsoft:mainfrom
yury-s:devops-docker-ado
Sep 15, 2026
Merged

Yury Semikhatsky (yury-s) merged 4 commits into
microsoft:mainfrom
yury-s:devops-docker-ado

Conversation

@yury-s

Copy link
Copy Markdown
Member

Summary

  • Replace the GitHub Actions Docker publish workflow (failed at azure/login for v1.63.0) with .azure-pipelines/publish-docker.yml, ported from upstream (devops: move docker publishing to AzDO playwright#41724).
  • Docker builds pull base images via the ACR cache, use the Azure Ubuntu mirror, and resolve Maven through DevDiv_PublicPackages (settings passed as a build secret); .dockerignore keeps the pipeline's .npmrc out of images.
  • Add a canary release channel for manual pipeline runs.

Comment thread .dockerignore
@@ -0,0 +1,5 @@
# The repository root is the Docker build context (see utils/docker/build.sh).
# Keep registry credentials written by the release pipeline out of the images.
**/.npmrc

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

should this include maven secrets as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No need — MavenAuthenticate injects credentials into ~/.m2/settings.xml on the agent, which is outside the build context (repo root), so COPY . can't pick it up. It reaches the build only via --secret and isn't persisted in any layer. .npmrc needs the entry only because the pipeline writes it into the repo root.

@yury-s
Yury Semikhatsky (yury-s) merged commit 90bcc6a into microsoft:main Sep 15, 2026
24 of 25 checks passed
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