Skip to content

Commit 8f69cbd

Browse files
authored
Update Dockerfile to get the module installed properly (#55)
1 parent 38e34d8 commit 8f69cbd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/build-image.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
branches:
44
- main
55
- used-actions
6+
- fix-module
67

78
workflow_dispatch:
89

Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,9 @@ RUN apt-get update \
1717
&& apt-get install git -y
1818

1919
# install the module we need
20-
RUN ["pwsh", "-Command", "install-module -name powershell-yaml -Force -Repository PSGallery"]
20+
RUN ["pwsh", "-Command", "Install-Module -name powershell-yaml -Scope AllUsers -Force -Repository PSGallery; ls opt/microsoft/powershell/7;"]
21+
22+
# check that the module is installed
23+
RUN ls /root/.local/share/powershell/Modules
24+
2125
SHELL ["pwsh"]

0 commit comments

Comments
 (0)