mirror of
https://github.com/drone-plugins/drone-docker.git
synced 2026-07-16 16:21:18 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d3b3f67752 | |||
| 4d7808b1d1 |
@@ -674,11 +674,12 @@ pipeline:
|
|||||||
auto_tag_suffix: windows-1809-amd64
|
auto_tag_suffix: windows-1809-amd64
|
||||||
when:
|
when:
|
||||||
stageStatus: Success
|
stageStatus: Success
|
||||||
condition: <+codebase.build.type> == "branch"
|
condition: <+codebase.build.type> == "tag"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
repo:
|
repo:
|
||||||
- docker
|
- docker
|
||||||
|
- gcr
|
||||||
- gar
|
- gar
|
||||||
- ecr
|
- ecr
|
||||||
- acr
|
- acr
|
||||||
@@ -700,6 +701,7 @@ pipeline:
|
|||||||
matrix:
|
matrix:
|
||||||
repo:
|
repo:
|
||||||
- docker
|
- docker
|
||||||
|
- gcr
|
||||||
- gar
|
- gar
|
||||||
- ecr
|
- ecr
|
||||||
- acr
|
- acr
|
||||||
@@ -778,6 +780,7 @@ pipeline:
|
|||||||
matrix:
|
matrix:
|
||||||
repo:
|
repo:
|
||||||
- docker
|
- docker
|
||||||
|
- gcr
|
||||||
- gar
|
- gar
|
||||||
- ecr
|
- ecr
|
||||||
- acr
|
- acr
|
||||||
@@ -799,6 +802,7 @@ pipeline:
|
|||||||
matrix:
|
matrix:
|
||||||
repo:
|
repo:
|
||||||
- docker
|
- docker
|
||||||
|
- gcr
|
||||||
- gar
|
- gar
|
||||||
- ecr
|
- ecr
|
||||||
- acr
|
- acr
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
# escape=`
|
|
||||||
FROM plugins/docker:windows-ltsc2025-amd64
|
|
||||||
|
|
||||||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" `
|
|
||||||
org.label-schema.name="Drone ACR" `
|
|
||||||
org.label-schema.vendor="Drone.IO Community" `
|
|
||||||
org.label-schema.schema-version="1.0"
|
|
||||||
|
|
||||||
ADD release/windows/amd64/drone-acr.exe C:/bin/drone-acr.exe
|
|
||||||
ENTRYPOINT [ "C:\\bin\\drone-acr.exe" ]
|
|
||||||
@@ -29,9 +29,3 @@ manifests:
|
|||||||
architecture: amd64
|
architecture: amd64
|
||||||
os: windows
|
os: windows
|
||||||
version: ltsc2022
|
version: ltsc2022
|
||||||
-
|
|
||||||
image: plugins/acr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-ltsc2025-amd64
|
|
||||||
platform:
|
|
||||||
architecture: amd64
|
|
||||||
os: windows
|
|
||||||
version: ltsc2025
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM docker:28.1.1-dind
|
FROM docker:29.3.1-dind
|
||||||
|
|
||||||
ENV DOCKER_HOST=unix:///var/run/docker.sock
|
ENV DOCKER_HOST=unix:///var/run/docker.sock
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM arm64v8/docker:28.1.1-dind
|
FROM arm64v8/docker:29.3.1-dind
|
||||||
|
|
||||||
ENV DOCKER_HOST=unix:///var/run/docker.sock
|
ENV DOCKER_HOST=unix:///var/run/docker.sock
|
||||||
|
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
# escape=`
|
|
||||||
FROM mcr.microsoft.com/windows/servercore:ltsc2025 as download
|
|
||||||
|
|
||||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
|
||||||
|
|
||||||
# Modernized for ltsc2025: fetch the standalone Docker CLI matching the daemon
|
|
||||||
# generation used on Windows Server 2025 hosts (28.x). Replaces the 1809/ltsc2022
|
|
||||||
# pattern of extracting docker.exe from DockerToolbox 19.03.1 via innoextract.
|
|
||||||
ENV DOCKER_VERSION 28.4.0
|
|
||||||
|
|
||||||
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; `
|
|
||||||
Invoke-WebRequest -UseBasicParsing `
|
|
||||||
$('https://download.docker.com/win/static/stable/x86_64/docker-{0}.zip' -f $env:DOCKER_VERSION) `
|
|
||||||
-OutFile docker.zip ; `
|
|
||||||
Expand-Archive docker.zip -DestinationPath C:\ ; `
|
|
||||||
Remove-Item docker.zip
|
|
||||||
|
|
||||||
FROM mcr.microsoft.com/windows/nanoserver:ltsc2025
|
|
||||||
USER ContainerAdministrator
|
|
||||||
|
|
||||||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" `
|
|
||||||
org.label-schema.name="Drone Docker" `
|
|
||||||
org.label-schema.vendor="Drone.IO Community" `
|
|
||||||
org.label-schema.schema-version="1.0"
|
|
||||||
|
|
||||||
RUN mkdir C:\bin
|
|
||||||
|
|
||||||
# Install cosign for container image signing
|
|
||||||
ADD https://github.com/sigstore/cosign/releases/download/v2.5.3/cosign-windows-amd64.exe C:/bin/cosign.exe
|
|
||||||
|
|
||||||
# nanoserver:ltsc2025 ships netapi32.dll natively (unlike 1809/ltsc2022 where we
|
|
||||||
# had to copy it in from servercore). Overwriting the ltsc2025 copy fails with
|
|
||||||
# "Access is denied" because system32 files are locked, so we skip that COPY.
|
|
||||||
COPY --from=download /docker/docker.exe C:/bin/docker.exe
|
|
||||||
ADD release/windows/amd64/drone-docker.exe C:/bin/drone-docker.exe
|
|
||||||
ENTRYPOINT [ "C:\\bin\\drone-docker.exe" ]
|
|
||||||
@@ -29,9 +29,3 @@ manifests:
|
|||||||
architecture: amd64
|
architecture: amd64
|
||||||
os: windows
|
os: windows
|
||||||
version: ltsc2022
|
version: ltsc2022
|
||||||
-
|
|
||||||
image: plugins/docker:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-ltsc2025-amd64
|
|
||||||
platform:
|
|
||||||
architecture: amd64
|
|
||||||
os: windows
|
|
||||||
version: ltsc2025
|
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
# escape=`
|
|
||||||
FROM plugins/docker:windows-ltsc2025-amd64
|
|
||||||
|
|
||||||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" `
|
|
||||||
org.label-schema.name="Drone ECR" `
|
|
||||||
org.label-schema.vendor="Drone.IO Community" `
|
|
||||||
org.label-schema.schema-version="1.0"
|
|
||||||
|
|
||||||
ADD release/windows/amd64/drone-ecr.exe C:/bin/drone-ecr.exe
|
|
||||||
ENTRYPOINT [ "C:\\bin\\drone-ecr.exe" ]
|
|
||||||
@@ -29,9 +29,3 @@ manifests:
|
|||||||
architecture: amd64
|
architecture: amd64
|
||||||
os: windows
|
os: windows
|
||||||
version: ltsc2022
|
version: ltsc2022
|
||||||
-
|
|
||||||
image: plugins/ecr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-ltsc2025-amd64
|
|
||||||
platform:
|
|
||||||
architecture: amd64
|
|
||||||
os: windows
|
|
||||||
version: ltsc2025
|
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
# escape=`
|
|
||||||
FROM plugins/docker:windows-ltsc2025-amd64
|
|
||||||
|
|
||||||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" `
|
|
||||||
org.label-schema.name="Drone GAR" `
|
|
||||||
org.label-schema.vendor="Drone.IO Community" `
|
|
||||||
org.label-schema.schema-version="1.0"
|
|
||||||
|
|
||||||
ADD release/windows/amd64/drone-gar.exe C:/bin/drone-gar.exe
|
|
||||||
ENTRYPOINT [ "C:\\bin\\drone-gar.exe" ]
|
|
||||||
@@ -29,9 +29,3 @@ manifests:
|
|||||||
architecture: amd64
|
architecture: amd64
|
||||||
os: windows
|
os: windows
|
||||||
version: ltsc2022
|
version: ltsc2022
|
||||||
-
|
|
||||||
image: plugins/gar:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-ltsc2025-amd64
|
|
||||||
platform:
|
|
||||||
architecture: amd64
|
|
||||||
os: windows
|
|
||||||
version: ltsc2025
|
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
# escape=`
|
|
||||||
FROM plugins/docker:windows-ltsc2025-amd64
|
|
||||||
|
|
||||||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" `
|
|
||||||
org.label-schema.name="Drone GCR" `
|
|
||||||
org.label-schema.vendor="Drone.IO Community" `
|
|
||||||
org.label-schema.schema-version="1.0"
|
|
||||||
|
|
||||||
ADD release/windows/amd64/drone-gcr.exe C:/bin/drone-gcr.exe
|
|
||||||
ENTRYPOINT [ "C:\\bin\\drone-gcr.exe" ]
|
|
||||||
@@ -29,9 +29,3 @@ manifests:
|
|||||||
architecture: amd64
|
architecture: amd64
|
||||||
os: windows
|
os: windows
|
||||||
version: ltsc2022
|
version: ltsc2022
|
||||||
-
|
|
||||||
image: plugins/gcr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-ltsc2025-amd64
|
|
||||||
platform:
|
|
||||||
architecture: amd64
|
|
||||||
os: windows
|
|
||||||
version: ltsc2025
|
|
||||||
|
|||||||
Reference in New Issue
Block a user