Skip to content

Commit

Permalink
Merge pull request #85 from luthermonson/windows-2004
Browse files Browse the repository at this point in the history
adding windows 2004
  • Loading branch information
ibuildthecloud authored Sep 2, 2020
2 parents 7a7129f + f21aa96 commit 1119701
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 2 deletions.
64 changes: 63 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,21 @@ steps:
- pull_request
- push
- tag
- name: github_binary_release
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- "dist/artifacts/*"
when:
instance:
- drone-publish.rancher.io
ref:
- refs/head/master
- refs/tags/*
event:
- tag
- name: upload-tag
pull: default
image: plugins/gcs
Expand Down Expand Up @@ -301,6 +316,52 @@ volumes:
depends_on:
- build

---
kind: pipeline
type: docker
name: package-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: docker
image: luthermonson/drone-docker:2004
settings:
build_args:
- SERVERCORE_VERSION=2004
- "VERSION=${DRONE_TAG}"
- "RELEASES=releases.rancher.com"
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile.windows
password:
from_secret: docker_password
username:
from_secret: docker_username
repo: rancher/dapper
tag: "${DRONE_TAG}-windows-amd64-2004"
volumes:
- name: docker
path: \\\\.\\pipe\\docker_engine
when:
event:
- tag
volumes:
- name: docker
host:
path: \\\\.\\pipe\\docker_engine
depends_on:
- build

---
kind: pipeline
type: docker
Expand Down Expand Up @@ -330,4 +391,5 @@ depends_on:
- package-arm64
- package-windows-1809
- package-windows-1903
- package-windows-1909
- package-windows-1909
- package-windows-2004
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
/bin
*.swp
.dapper
.dapper.exe
/.idea
/.vagrant
8 changes: 7 additions & 1 deletion manifest.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@ manifests:
platform:
architecture: amd64
os: windows
version: 1909
version: 1909
-
image: rancher/dapper:{{#if build.tag}}{{build.tag}}{{else}}{{replace "release/" "" build.branch }}-head{{/if}}-windows-amd64-2004
platform:
architecture: amd64
os: windows
version: 2004

0 comments on commit 1119701

Please sign in to comment.