Fix windows drone publish step
@@ -315,8 +315,9 @@ clone:
depth: 20
steps:
- name: docker-publish-agent
- image: plugins/docker
+ image: plugins/docker:windows-1809-amd64
settings:
+ purge: false
dockerfile: package/Dockerfile-windows.agent
password:
from_secret: docker_password
@@ -357,14 +358,11 @@ platform:
os: windows
arch: amd64
version: 2022
-# remove this and use upstream images when https://github.com/drone/drone-git/pull/25 is merged
+# Currently have to define "depth" as otherwise clone fails at
+# https://github.com/drone/drone-git/blob/39d233b3d9eccc68e66508a06a725a2567f33143/windows/clone-tag.ps1#L12
clone:
- disable: true
+ depth: 20
steps:
- - name: clone
- image: rancher/drone-images:git-amd64-ltsc2022
- settings:
- depth: 1
- name: docker-publish-agent
image: rancher/drone-images:docker-amd64-ltsc2022
settings:
@@ -379,6 +377,7 @@ steps:
- "SERVERCORE_VERSION=ltsc2022"
- "RELEASES=releases.rancher.com"
- "VERSION=${DRONE_TAG}"
+ - ARCH=amd64
context: package/
custom_dns: 1.1.1.1
volumes:
