Skip to content

Commit abfd297

Browse files
author
Anshika Anand
committed
Added back windows-1809
1 parent 3aaa7df commit abfd297

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

.drone.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,49 @@ trigger:
3131
- "refs/tags/**"
3232
- "refs/pull/**"
3333

34+
---
35+
kind: pipeline
36+
type: vm
37+
name: windows-1809
38+
39+
pool:
40+
use: windows
41+
42+
platform:
43+
os: windows
44+
arch: amd64
45+
46+
steps:
47+
- name: go build
48+
image: golang:1.19
49+
environment:
50+
CGO_ENABLED: 0
51+
commands:
52+
- go build -o release/windows/amd64/buildx-gar.exe ./cmd/drone-buildx-gar
53+
- name: build gar plugin
54+
image: plugins/docker:20.17.4-windows-1809-amd64
55+
settings:
56+
dockerfile: docker/gar/Dockerfile.windows.amd64.1809
57+
repo: plugins/buildx-gar
58+
username:
59+
from_secret: docker_username
60+
password:
61+
from_secret: docker_password
62+
auto_tag: true
63+
auto_tag_suffix: windows-1809-amd64
64+
purge: false
65+
when:
66+
event: [push, tag]
67+
68+
depends_on:
69+
- testing
70+
71+
trigger:
72+
ref:
73+
- refs/heads/main
74+
- refs/tags/*
75+
- "refs/pull/**"
76+
3477
---
3578
kind: pipeline
3679
type: vm
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# escape=`
2+
FROM plugins/buildx:windows-1809-amd64
3+
4+
LABEL maintainer="Drone.IO Community <[email protected]>" `
5+
org.label-schema.name="Drone GAR" `
6+
org.label-schema.vendor="Drone.IO Community" `
7+
org.label-schema.schema-version="1.0"
8+
9+
ADD release/windows/amd64/buildx-gar.exe C:/bin/buildx-gar.exe
10+
ENTRYPOINT [ "C:\\bin\\buildx-gar.exe" ]

docker/gar/manifest.tmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ manifests:
1717
architecture: arm64
1818
os: linux
1919
variant: v8
20+
-
21+
image: plugins/buildx-gar:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1809-amd64
22+
platform:
23+
architecture: amd64
24+
os: windows
25+
version: 1809
2026
-
2127
image: plugins/buildx-gar:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-ltsc2022-amd64
2228
platform:

0 commit comments

Comments
 (0)