From 32a3ba5079d53197a8c5ac15ea5ee5844da1feeb Mon Sep 17 00:00:00 2001 From: Luther Monson Date: Fri, 15 Jan 2021 13:35:56 -0700 Subject: [PATCH] Adding windows 20H2 builds --- .drone.yml | 46 +++++++++++++++++++++++++++++++++++++++++++++- manifest.tmpl | 8 +++++++- 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3824d006..0ce6e447 100644 --- a/.drone.yml +++ b/.drone.yml @@ -259,6 +259,49 @@ volumes: --- kind: pipeline +name: windows-20H2 + +platform: + os: windows + arch: amd64 + version: 20H2 + +# 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-20H2-amd64 + - name: publish-rke-tools-windows-20H2 + image: luthermonson/drone-docker:20H2 + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + dockerfile: package/Dockerfile.windows + build_args: + - SERVERCORE_VERSION=20H2 + repo: rancher/rke-tools + tag: "${DRONE_TAG}-windows-20H2" + volumes: + - name: docker_pipe + path: \\\\.\\pipe\\docker_engine + when: + instance: + - drone-publish.rancher.io + refs: + - refs/head/master + - refs/tags/* + event: + - tag +volumes: + - name: docker_pipe + host: + path: \\\\.\\pipe\\docker_engine +--- +kind: pipeline name: manifest steps: @@ -284,4 +327,5 @@ depends_on: - windows-1809 - windows-1903 - windows-1909 -- windows-2004 \ No newline at end of file +- windows-2004 +- windows-20H2 \ No newline at end of file diff --git a/manifest.tmpl b/manifest.tmpl index 88da1948..87541894 100644 --- a/manifest.tmpl +++ b/manifest.tmpl @@ -33,4 +33,10 @@ manifests: platform: architecture: amd64 os: windows - version: 2004 \ No newline at end of file + version: 2004 + - + image: rancher/rke-tools:{{build.tag}}-windows-20H2 + platform: + architecture: amd64 + os: windows + version: 20H2 \ No newline at end of file