mirror of
https://github.com/drone-plugins/drone-manifest.git
synced 2026-06-26 15:52:29 +08:00
23 lines
977 B
Docker
23 lines
977 B
Docker
# escape=`
|
|
FROM mcr.microsoft.com/windows/servercore:1809 as download
|
|
|
|
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
|
|
|
RUN mkdir C:\app
|
|
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; `
|
|
Invoke-WebRequest 'https://github.com/estesp/manifest-tool/releases/download/v1.0.3/manifest-tool-windows-amd64.exe' -OutFile 'c:\app\manifest-tool.exe'
|
|
|
|
FROM plugins/base:windows-1809-amd64
|
|
|
|
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
|
|
|
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" `
|
|
org.label-schema.name="Drone Manifest" `
|
|
org.label-schema.vendor="Drone.IO Community" `
|
|
org.label-schema.schema-version="1.0"
|
|
|
|
COPY --from=download /app/manifest-tool.exe C:/bin/docker.exe
|
|
|
|
ADD release/windows/amd64/drone-manifest.exe C:/bin/drone-manifest.exe
|
|
ENTRYPOINT [ "C:\\bin\\drone-manifest.exe" ]
|