Skip to content

Commit

Permalink
Merge pull request #23 from Anshika2203/CI-14565
Browse files Browse the repository at this point in the history
Added back windows-1809 files.
  • Loading branch information
Ompragash authored Oct 4, 2024
2 parents 1e72ee6 + abfd297 commit ba362e1
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,49 @@ trigger:
- "refs/tags/**"
- "refs/pull/**"

---
kind: pipeline
type: vm
name: windows-1809

pool:
use: windows

platform:
os: windows
arch: amd64

steps:
- name: go build
image: golang:1.19
environment:
CGO_ENABLED: 0
commands:
- go build -o release/windows/amd64/buildx-gar.exe ./cmd/drone-buildx-gar
- name: build gar plugin
image: plugins/docker:20.17.4-windows-1809-amd64
settings:
dockerfile: docker/gar/Dockerfile.windows.amd64.1809
repo: plugins/buildx-gar
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
auto_tag_suffix: windows-1809-amd64
purge: false
when:
event: [push, tag]

depends_on:
- testing

trigger:
ref:
- refs/heads/main
- refs/tags/*
- "refs/pull/**"

---
kind: pipeline
type: vm
Expand Down
10 changes: 10 additions & 0 deletions docker/gar/Dockerfile.windows.amd64.1809
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# escape=`
FROM plugins/buildx:windows-1809-amd64

LABEL maintainer="Drone.IO Community <[email protected]>" `
org.label-schema.name="Drone GAR" `
org.label-schema.vendor="Drone.IO Community" `
org.label-schema.schema-version="1.0"

ADD release/windows/amd64/buildx-gar.exe C:/bin/buildx-gar.exe
ENTRYPOINT [ "C:\\bin\\buildx-gar.exe" ]
6 changes: 6 additions & 0 deletions docker/gar/manifest.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ manifests:
architecture: arm64
os: linux
variant: v8
-
image: plugins/buildx-gar:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1809-amd64
platform:
architecture: amd64
os: windows
version: 1809
-
image: plugins/buildx-gar:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-ltsc2022-amd64
platform:
Expand Down

0 comments on commit ba362e1

Please sign in to comment.