-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This reverts commit dc3a21d.
- Loading branch information
1 parent
dc3a21d
commit f6266e2
Showing
3 changed files
with
3 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,12 @@ | ||
# escape=` | ||
|
||
FROM mcr.microsoft.com/windows/servercore:1809 as base | ||
FROM mcr.microsoft.com/windows/servercore:1809 | ||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
USER ContainerAdministrator | ||
|
||
ENV GODEBUG=netdns=go | ||
RUN mkdir /bin | ||
RUN Invoke-WebRequest https://releases.jfrog.io/artifactory/jfrog-cli/v2/2.10.0/jfrog-cli-windows-amd64/jfrog.exe -OutFile C:/bin/jfrog.exe | ||
|
||
FROM mcr.microsoft.com/powershell:nanoserver-1809 | ||
COPY --from=base /bin /bin | ||
|
||
ADD release/windows/amd64/plugin C:/bin/drone-artifactory.exe | ||
|
||
# https://github.com/PowerShell/PowerShell/issues/6211#issuecomment-367477137 | ||
USER ContainerAdministrator | ||
RUN setx /M PATH "%PATH%;C:\Program Files\PowerShell" | ||
|
||
SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
ENTRYPOINT [ "C:\\bin\\drone-artifactory.exe" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,11 @@ | ||
# escape=` | ||
|
||
FROM mcr.microsoft.com/windows/servercore:1909 as base | ||
FROM mcr.microsoft.com/windows/servercore:1909 | ||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
USER ContainerAdministrator | ||
|
||
ENV GODEBUG=netdns=go | ||
RUN mkdir /bin | ||
RUN Invoke-WebRequest https://releases.jfrog.io/artifactory/jfrog-cli/v2/2.10.0/jfrog-cli-windows-amd64/jfrog.exe -OutFile C:/bin/jfrog.exe | ||
|
||
FROM mcr.microsoft.com/powershell:nanoserver-1909 | ||
COPY --from=base /bin /bin | ||
|
||
ADD release/windows/amd64/plugin C:/bin/drone-artifactory.exe | ||
|
||
# https://github.com/PowerShell/PowerShell/issues/6211#issuecomment-367477137 | ||
USER ContainerAdministrator | ||
RUN setx /M PATH "%PATH%;C:\Program Files\PowerShell" | ||
|
||
SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
ENTRYPOINT [ "C:\\bin\\drone-artifactory.exe" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters