Skip to content

Adds Docker build check to PR workflow. Closes #5033#7230

Open
officialasishkumar wants to merge 1 commit into
pnp:mainfrom
officialasishkumar:issue-5033-docker-build-check
Open

Adds Docker build check to PR workflow. Closes #5033#7230
officialasishkumar wants to merge 1 commit into
pnp:mainfrom
officialasishkumar:issue-5033-docker-build-check

Conversation

@officialasishkumar

Copy link
Copy Markdown
Contributor

Closes #5033

Summary

  • Adds a Docker image build job to the PR check workflow.
  • Fixes the Dockerfile line continuation so the new PR build succeeds.

Validation

  • docker build -t cli-microsoft365-pr-check-test:local .

@milanholemans

Copy link
Copy Markdown
Contributor

@officialasishkumar can you please comment on the issue first before working on it?

@officialasishkumar

Copy link
Copy Markdown
Contributor Author

Commented on #5033 now for tracking.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 improves CI reliability for the CLI’s Docker distribution by ensuring the repository Dockerfile is built as part of the PR checks, catching Docker build regressions before release.

Changes:

  • Adds a docker_build job to .github/workflows/check_pr.yml to build the Docker image on PRs.
  • Fixes a Dockerfile line-continuation issue (a trailing space after \) that would break the RUN ... && ... chain during docker build.

Reviewed changes

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

File Description
Dockerfile Fixes a broken line continuation so Docker builds succeed reliably.
.github/workflows/check_pr.yml Adds a PR workflow job that runs a Docker Buildx build (no push) to validate the Dockerfile.

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.

Add Dockerfile build to PR check workflow

3 participants