From 0f6eba5c96a733a57f294c9ac1689735cbf54477 Mon Sep 17 00:00:00 2001 From: Luther Monson Date: Fri, 4 Sep 2020 14:58:39 -0700 Subject: [PATCH] Adding Windows 2004 Support --- .drone.yml | 44 +++++++++++++++++++++++++++++++++++++++++++- manifest.tmpl | 6 ++++++ 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 13d5971..242c192 100644 --- a/.drone.yml +++ b/.drone.yml @@ -168,6 +168,47 @@ steps: event: - tag +volumes: + - name: docker_pipe + host: + path: \\\\.\\pipe\\docker_engine +--- +kind: pipeline +name: windows-2004 + +platform: + os: windows + arch: amd64 + version: 2004 + +# remove this and use upstream images when https://github.com/drone/drone-git/pull/25 is merged +clone: + disable: true + +steps: + - name: clone + image: luthermonson/drone-git:windows-2004-amd64 + - name: publish-hyperkube-windows-2004 + image: luthermonson/drone-docker:2004 + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + dockerfile: Dockerfile.windows + repo: rancher/hyperkube + tag: "${DRONE_TAG}-windows-2004" + build_args: + - SERVERCORE_VERSION=2004 + volumes: + - name: docker_pipe + path: \\\\.\\pipe\\docker_engine + when: + instance: + - drone-publish.rancher.io + event: + - tag + volumes: - name: docker_pipe host: @@ -195,4 +236,5 @@ depends_on: - linux-arm64 - windows-1809 - windows-1903 -- windows-1909 \ No newline at end of file +- windows-1909 +- windows-2004 \ No newline at end of file diff --git a/manifest.tmpl b/manifest.tmpl index 1b805a8..89722af 100644 --- a/manifest.tmpl +++ b/manifest.tmpl @@ -28,3 +28,9 @@ manifests: architecture: amd64 os: windows version: 1909 + - + image: rancher/hyperkube:{{build.tag}}-windows-2004 + platform: + architecture: amd64 + os: windows + version: 2004