-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathDockerfile
24 lines (18 loc) · 1008 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM mcr.microsoft.com/powershell:7.1.5-ubuntu-20.04 as base
SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN Set-PSRepository -Name PSGallery -InstallationPolicy Trusted; \
Install-Module PSScriptAnalyzer -RequiredVersion 1.20.0 -Scope AllUsers -Repository PSGallery
FROM base as analyzer
LABEL "com.github.actions.name" = "PSScriptAnalyzer"
LABEL "com.github.actions.description" = "Run PSScriptAnalyzer tests"
LABEL "com.github.actions.icon"="check-square"
LABEL "com.github.actions.color"="green"
LABEL "name" = "github-action-psscriptanalyzer"
LABEL "version" = "2.4.0"
LABEL "repository" = "https://github.com/devblackops/github-action-psscriptanalyzer"
LABEL "homepage" = "https://github.com/PowerShell/PSScriptAnalyzer"
LABEL "maintainer" = "Brandon Olin <[email protected]>"
ADD entrypoint.ps1 /entrypoint.ps1
COPY LICENSE README.md /
RUN chmod +x /entrypoint.ps1
ENTRYPOINT ["pwsh", "/entrypoint.ps1"]