Compare commits

...

21 Commits

Author SHA1 Message Date
tapankarangiya 994fe7a8e4 feat: [CI-23609]: docker files for windows 2025 2026-07-08 16:16:19 +05:30
tapankarangiya 35365e35c8 feat: [CI-23609]: docker files for windows 2025 2026-07-07 18:06:11 +05:30
tapankarangiya 3070ebd7da feat: [CI-23609]: docker files for windows 2025 2026-07-07 13:40:18 +05:30
Maanav Shah f6164cf702 Merge pull request #511 from drone-plugins/CI-21939-fix
feat: [CI-21939]: reverting the changes in docker version
2026-06-04 11:39:54 +05:30
Chirag S f946dac9ae feat: [CI-21939]: reverting changes in the docker version 2026-06-03 10:22:02 +05:30
Maanav Shah 801ca62c15 Merge pull request #509 from maxknee/mk/update-docker
update docker version
2026-05-20 11:12:47 +05:30
dhiraj.chhawchharia@harness.io 95df76b75d Update pipeline drone-docker-harness 2026-05-05 12:23:39 +05:30
dhiraj.chhawchharia@harness.io d9b3767c94 Update pipeline drone-docker-harness 2026-05-05 12:08:01 +05:30
raghav.gupta@harness.io 1482f4d794 Update pipeline drone-docker-harness 2026-05-05 11:27:32 +05:30
Max Knee 19d0d55c04 update docker version
Signed-off-by: Max Knee <max.knee@nytimes.com>
2026-04-07 13:40:36 -04:00
raghav.gupta@harness.io ce792a8072 Update pipeline drone-docker-harness 2026-04-07 16:40:41 +05:30
raghav.gupta@harness.io 33ffeb9986 Update pipeline drone-docker-harness 2026-04-07 16:40:14 +05:30
raghav.gupta@harness.io 0eaa5cb475 Update pipeline drone-docker-harness 2026-04-07 16:27:37 +05:30
raghav.gupta@harness.io 4277ba8a92 Update pipeline drone-docker-harness 2026-04-07 16:27:02 +05:30
raghav.gupta@harness.io a95059bc84 Update pipeline drone-docker-harness 2026-04-07 16:26:36 +05:30
raghav.gupta@harness.io 3ba3d25d31 Update pipeline drone-docker-harness 2026-04-07 16:25:39 +05:30
raghav.gupta@harness.io a6ed4e0fb0 Update pipeline drone-docker-harness 2026-04-07 14:21:04 +05:30
raghav.gupta@harness.io c5bbcaaff5 Update pipeline drone-docker-harness 2026-04-07 14:15:57 +05:30
raghav.gupta@harness.io b5191aec1c Update pipeline drone-docker-harness 2026-04-07 14:15:18 +05:30
raghav.gupta@harness.io 4eeea21716 Update pipeline drone-docker-harness 2026-04-07 14:12:09 +05:30
raghav.gupta@harness.io cff5ad3593 Update pipeline drone-docker-harness 2026-04-07 11:55:40 +05:30
11 changed files with 547 additions and 0 deletions
+441
View File
@@ -398,6 +398,412 @@ pipeline:
- acr
buildIntelligence:
enabled: false
- stage:
name: rf-linux-amd64
identifier: rf_linamd64
description: ""
type: CI
spec:
cloneCodebase: true
caching:
enabled: false
paths: []
platform:
os: Linux
arch: Amd64
runtime:
type: Cloud
spec: {}
execution:
steps:
- step:
type: GitClone
name: Clone RF Dockerfiles
identifier: clone_rf
spec:
connectorRef: RapidFortPlugins
build:
type: branch
spec:
branch: main
cloneDirectory: rf-plugins
- step:
type: Run
name: Build Binary
identifier: build_binary
spec:
connectorRef: Plugins_Docker_Hub_Connector
image: golang:1.25.7
shell: Sh
command: go build -a -tags netgo -o release/linux/amd64/drone-<+matrix.repo> ./cmd/drone-<+matrix.repo>
envVariables:
CGO_ENABLED: "0"
strategy:
matrix:
repo:
- docker
- acr
- ecr
- gar
- step:
type: Plugin
name: RF Build and Push on Tag
identifier: rf_docker_build_push_tag
spec:
connectorRef: Plugins_Docker_Hub_Connector
image: plugins/docker
settings:
username: <+secrets.getValue("harnesssecureusername")>
password: <+secrets.getValue("dockerHarnessSecurePwd")>
repo: harnesssecure/<+matrix.repo>
dockerfile: rf-plugins/drone-docker/docker/<+matrix.repo>/Dockerfile.linux.amd64.rf
auto_tag: "true"
auto_tag_suffix: linux-amd64
base_image_username: <+secrets.getValue("harness0HARUsername")>
base_image_password: <+secrets.getValue("harness0HARPAT")>
base_image_registry: harness0.harness.io/oci/docker_artifacts
when:
stageStatus: Success
condition: <+codebase.build.type> == "tag"
strategy:
matrix:
repo:
- docker
- acr
- ecr
- gar
- step:
type: BuildAndPushDockerRegistry
name: RF Build and Push on Branch
identifier: rf_build_push_branch
spec:
connectorRef: harnesssecure
repo: harnesssecure/<+matrix.repo>
tags:
- linux-amd64
caching: false
dockerfile: rf-plugins/drone-docker/docker/<+matrix.repo>/Dockerfile.linux.amd64.rf
envVariables:
PLUGIN_BASE_IMAGE_USERNAME: <+secrets.getValue("harness0HARUsername")>
PLUGIN_BASE_IMAGE_PASSWORD: <+secrets.getValue("harness0HARPAT")>
PLUGIN_BASE_IMAGE_REGISTRY: harness0.harness.io/oci/docker_artifacts
when:
stageStatus: Success
condition: <+codebase.build.type> == "branch"
strategy:
matrix:
repo:
- docker
- acr
- ecr
- gar
variables:
- name: CI_ENABLE_BARE_METAL
type: String
description: ""
required: false
value: "false"
- stage:
name: rf-linux-arm64
identifier: rf_linarm64
description: ""
type: CI
spec:
cloneCodebase: true
caching:
enabled: false
paths: []
platform:
os: Linux
arch: Arm64
runtime:
type: Cloud
spec: {}
execution:
steps:
- step:
type: GitClone
name: Clone RF Dockerfiles
identifier: clone_rf
spec:
connectorRef: RapidFortPlugins
build:
type: branch
spec:
branch: main
cloneDirectory: rf-plugins
- step:
type: Run
name: Build Binary
identifier: build_binary
spec:
connectorRef: Plugins_Docker_Hub_Connector
image: golang:1.25.7
shell: Sh
command: go build -a -tags netgo -o release/linux/arm64/drone-<+matrix.repo> ./cmd/drone-<+matrix.repo>
envVariables:
CGO_ENABLED: "0"
strategy:
matrix:
repo:
- docker
- acr
- ecr
- gar
- step:
type: Plugin
name: RF Build and Push on Tag
identifier: rf_docker_build_push_tag
spec:
connectorRef: Plugins_Docker_Hub_Connector
image: plugins/docker
settings:
username: <+secrets.getValue("harnesssecureusername")>
password: <+secrets.getValue("dockerHarnessSecurePwd")>
repo: harnesssecure/<+matrix.repo>
dockerfile: rf-plugins/drone-docker/docker/<+matrix.repo>/Dockerfile.linux.arm64.rf
auto_tag: "true"
auto_tag_suffix: linux-arm64
base_image_username: <+secrets.getValue("harness0HARUsername")>
base_image_password: <+secrets.getValue("harness0HARPAT")>
base_image_registry: harness0.harness.io/oci/docker_artifacts
when:
stageStatus: Success
condition: <+codebase.build.type> == "tag"
strategy:
matrix:
repo:
- docker
- acr
- ecr
- gar
- step:
type: BuildAndPushDockerRegistry
name: RF Build and Push on Branch
identifier: rf_build_push_branch
spec:
connectorRef: harnesssecure
repo: harnesssecure/<+matrix.repo>
tags:
- linux-arm64
caching: false
dockerfile: rf-plugins/drone-docker/docker/<+matrix.repo>/Dockerfile.linux.arm64.rf
envVariables:
PLUGIN_BASE_IMAGE_USERNAME: <+secrets.getValue("harness0HARUsername")>
PLUGIN_BASE_IMAGE_PASSWORD: <+secrets.getValue("harness0HARPAT")>
PLUGIN_BASE_IMAGE_REGISTRY: harness0.harness.io/oci/docker_artifacts
when:
stageStatus: Success
condition: <+codebase.build.type> == "branch"
strategy:
matrix:
repo:
- docker
- acr
- ecr
- gar
variables:
- name: CI_ENABLE_BARE_METAL
type: String
description: ""
required: false
value: "false"
- stage:
name: win-1809-amd64-rf
identifier: win1809amd64rf
description: ""
type: CI
spec:
cloneCodebase: true
caching:
enabled: true
infrastructure:
type: VM
spec:
type: Pool
spec:
poolName: windows-2019
os: Windows
execution:
steps:
- step:
type: GitClone
name: Clone RF Dockerfiles
identifier: Clone_RF_Dockerfiles
spec:
connectorRef: RapidFortPlugins
cloneDirectory: rf-plugins
build:
type: branch
spec:
branch: main
- step:
type: Run
name: Build Binary
identifier: go_build
spec:
connectorRef: Plugins_Docker_Hub_Connector
image: golang:1.23.0
shell: Sh
command: |-
# disable cgo
export CGO_ENABLED=0
go build -o release/windows/amd64/drone-<+matrix.repo>.exe ./cmd/drone-<+matrix.repo>
strategy:
matrix:
repo:
- docker
- gcr
- gar
- ecr
- acr
- step:
type: Plugin
name: RF Build and Push on Tag
identifier: RF_Build_and_Push_on_Tag
spec:
connectorRef: Plugins_Docker_Hub_Connector
image: plugins/docker
settings:
username: <+secrets.getValue("harnesssecureusername")>
password: <+secrets.getValue("dockerHarnessSecurePwd")>
repo: harnesssecure/<+matrix.repo>
dockerfile: rf-plugins/drone-docker/docker/<+matrix.repo>/Dockerfile.windows.amd64.1809.rf
auto_tag: "true"
auto_tag_suffix: windows-1809-amd64
when:
stageStatus: Success
condition: <+codebase.build.type> == "branch"
strategy:
matrix:
repo:
- docker
- gar
- ecr
- acr
- step:
type: BuildAndPushDockerRegistry
name: RF Build and Push on Branch
identifier: rf_build_push_branch
spec:
connectorRef: harnesssecure
repo: harnesssecure/<+matrix.repo>
tags:
- windows-1809-amd64
caching: false
dockerfile: rf-plugins/drone-docker/docker/<+matrix.repo>/Dockerfile.windows.amd64.1809.rf
when:
stageStatus: Success
condition: <+codebase.build.type> == "branch"
strategy:
matrix:
repo:
- docker
- gar
- ecr
- acr
delegateSelectors:
- windows-vm
- stage:
name: win-ltsc2022-amd64-rf
identifier: winamd64rf
description: ""
type: CI
spec:
cloneCodebase: true
caching:
enabled: false
paths: []
platform:
os: Windows
arch: Amd64
runtime:
type: Cloud
spec: {}
execution:
steps:
- step:
type: GitClone
name: Clone RF Dockerfiles
identifier: Clone_RF_Dockerfiles
spec:
connectorRef: RapidFortPlugins
cloneDirectory: rf-plugins
build:
type: branch
spec:
branch: main
- step:
type: Run
name: Build Binary -ltsc2022
identifier: build_amd64ltsc2022
spec:
connectorRef: Plugins_Docker_Hub_Connector
image: golang:1.23.0
shell: Sh
command: |-
# disable cgo
export CGO_ENABLED=0
go build -o release/windows/amd64/drone-<+matrix.repo>.exe ./cmd/drone-<+matrix.repo>
envVariables:
CGO_ENABLED: "0"
strategy:
matrix:
repo:
- docker
- gcr
- gar
- ecr
- acr
- step:
type: Plugin
name: RF Build and Push on Tag
identifier: RF_Build_and_Push_on_Tag
spec:
connectorRef: Plugins_Docker_Hub_Connector
image: plugins/docker
settings:
username: <+secrets.getValue("harnesssecureusername")>
password: <+secrets.getValue("dockerHarnessSecurePwd")>
repo: harnesssecure/<+matrix.repo>
dockerfile: rf-plugins/drone-docker/docker/<+matrix.repo>/Dockerfile.windows.amd64.ltsc2022.rf
auto_tag: "true"
auto_tag_suffix: windows-ltsc2022-amd64
when:
stageStatus: Success
condition: <+codebase.build.type> == "tag"
strategy:
matrix:
repo:
- docker
- gar
- ecr
- acr
- step:
type: BuildAndPushDockerRegistry
name: RF Build and Push on Branch
identifier: rf_build_push_branch
spec:
connectorRef: harnesssecure
repo: harnesssecure/<+matrix.repo>
tags:
- windows-ltsc2022-amd64
caching: false
dockerfile: rf-plugins/drone-docker/docker/<+matrix.repo>/Dockerfile.windows.amd64.ltsc2022.rf
when:
stageStatus: Success
condition: <+codebase.build.type> == "branch"
strategy:
matrix:
repo:
- docker
- gar
- ecr
- acr
buildIntelligence:
enabled: false
- stage:
name: Manifest and Release
identifier: Manifest
@@ -410,6 +816,18 @@ pipeline:
paths: []
execution:
steps:
- step:
type: GitClone
name: Clone RF Manifest Templates
identifier: clone_rf_manifest
spec:
connectorRef: RapidFortPlugins
build:
type: branch
spec:
branch: main
cloneDirectory: rf-plugins
contextType: Pipeline
- step:
type: Plugin
name: Manifest
@@ -435,6 +853,29 @@ pipeline:
- ecr
- heroku
- acr
- step:
type: Plugin
name: RF Manifest
identifier: rf_manifest
spec:
connectorRef: Plugins_Docker_Hub_Connector
image: plugins/manifest
settings:
username: <+secrets.getValue("harnesssecureusername")>
password: <+secrets.getValue("dockerHarnessSecurePwd")>
auto_tag: "true"
ignore_missing: "true"
spec: rf-plugins/drone-docker/docker/<+matrix.repo>/manifest.tmpl
when:
stageStatus: Success
condition: <+codebase.build.type> == "tag"
strategy:
matrix:
repo:
- docker
- acr
- ecr
- gar
platform:
os: Linux
arch: Amd64
@@ -0,0 +1,10 @@
# 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" ]
+6
View File
@@ -29,3 +29,9 @@ manifests:
architecture: amd64
os: windows
version: ltsc2022
-
image: plugins/acr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-ltsc2025-amd64
platform:
architecture: amd64
os: windows
version: ltsc2025
@@ -0,0 +1,36 @@
# 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" ]
+6
View File
@@ -29,3 +29,9 @@ manifests:
architecture: amd64
os: windows
version: ltsc2022
-
image: plugins/docker:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-ltsc2025-amd64
platform:
architecture: amd64
os: windows
version: ltsc2025
@@ -0,0 +1,10 @@
# 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" ]
+6
View File
@@ -29,3 +29,9 @@ manifests:
architecture: amd64
os: windows
version: ltsc2022
-
image: plugins/ecr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-ltsc2025-amd64
platform:
architecture: amd64
os: windows
version: ltsc2025
@@ -0,0 +1,10 @@
# 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" ]
+6
View File
@@ -29,3 +29,9 @@ manifests:
architecture: amd64
os: windows
version: ltsc2022
-
image: plugins/gar:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-ltsc2025-amd64
platform:
architecture: amd64
os: windows
version: ltsc2025
@@ -0,0 +1,10 @@
# 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" ]
+6
View File
@@ -29,3 +29,9 @@ manifests:
architecture: amd64
os: windows
version: ltsc2022
-
image: plugins/gcr:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-ltsc2025-amd64
platform:
architecture: amd64
os: windows
version: ltsc2025