Skip to content

Commit f6bca78

Browse files
authored
Merge pull request #2885 from microsoftgraph/bugfix/docker-platform
fix: removes arm64v8 and armv7 platforms from docker since upstream image doesn't seem to support it
2 parents 48d7266 + 3ead773 commit f6bca78

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: docker/[email protected]
3737
with:
3838
push: true
39-
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7
39+
platforms: linux/amd64
4040
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.getversion.outputs.version }}
4141
build-args: |
4242
VERSION=${{ steps.getversion.outputs.version }}

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM mcr.microsoft.com/powershell
33
ARG VERSION=latest
44

55
RUN pwsh -c "if ('${VERSION}' -eq 'latest') { Install-Module Microsoft.Graph -Scope CurrentUser -AllowClobber -Force} else { Install-Module Microsoft.Graph -Scope CurrentUser -AllowClobber -Force -RequiredVersion ${VERSION} }"
6+
RUN pwsh -c "if (!(Test-Path -Path \$PROFILE)) { New-Item -ItemType File -Path \$PROFILE -Force } echo 'Import-Module Microsoft.Graph.Authentication' >> \$PROFILE"
67

78
LABEL description="# Welcome to Microsoft Graph PowrShell \
89
To start learning about the module checkout the [getting started documentation](https://docs.microsoft.com/en-us/powershell/microsoftgraph/get-started)"

0 commit comments

Comments
 (0)