From 22c713b861f18f4bee39ed1ed60db74de8a1638c Mon Sep 17 00:00:00 2001 From: Asish Kumar Date: Fri, 24 Apr 2026 03:00:16 +0530 Subject: [PATCH] Adds Docker build check to PR workflow. Closes #5033 --- .github/workflows/check_pr.yml | 14 +++++++++++++- Dockerfile | 4 ++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check_pr.yml b/.github/workflows/check_pr.yml index 93b06ce5e85..8dac2f31a42 100644 --- a/.github/workflows/check_pr.yml +++ b/.github/workflows/check_pr.yml @@ -157,4 +157,16 @@ jobs: - name: Build docs run: npm run build - working-directory: docs \ No newline at end of file + working-directory: docs + docker_build: + if: github.repository_owner == 'pnp' + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v4 + - name: Build Docker image + uses: docker/build-push-action@v7 + with: + push: false diff --git a/Dockerfile b/Dockerfile index f28a8731cb1..45993d6e83f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,7 +38,7 @@ ENV 0="/bin/bash" \ RUN bash -c 'echo "export PATH=$PATH:/home/cli-microsoft365/.npm-global/bin:/home/.local/bin" >> ~/.bash_profile' \ && bash -c 'echo "export CLIMICROSOFT365_ENV=\"docker\"" >> ~/.bash_profile' \ - && bash -c 'npm i -g @pnp/cli-microsoft365@${CLI_VERSION} --omit=dev --quiet --no-progress' \ + && bash -c 'npm i -g @pnp/cli-microsoft365@${CLI_VERSION} --omit=dev --quiet --no-progress' \ && bash -c 'echo "source /etc/bash/bash_completion.sh" >> ~/.bash_profile' \ && bash -c 'echo "alias \"m365?\"=\"m365_chili\"" >> ~/.bash_profile' \ && bash -c 'echo ". .bashrc" >> ~/.bash_profile' \ @@ -47,4 +47,4 @@ RUN bash -c 'echo "export PATH=$PATH:/home/cli-microsoft365/.npm-global/bin:/hom && pwsh -c 'm365 cli completion pwsh setup --profile $profile' \ && pwsh -c 'Add-Content -Path $PROFILE -Value "`r`Set-Alias -Name m365? -Value m365_chili"' -CMD [ "bash", "-l" ] \ No newline at end of file +CMD [ "bash", "-l" ]