Added windows support

This commit is contained in:
architmallik7
2024-04-02 19:42:56 +05:30
parent 24daaff1de
commit c5c6593e14
5 changed files with 20 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
export GOPATH=""
# disable cgo
export CGO_ENABLED=0
set -e
set -x
# windows
GOOS=windows go build -o release/windows/amd64/drone-email.exe
View File
+9
View File
@@ -0,0 +1,9 @@
FROM plugins/base:windows-ltsc2022-amd64
USER ContainerAdministrator
ENV GODEBUG=netdns=go
ADD release/windows/amd64/drone-email.exe C:/drone-email.exe
ENTRYPOINT ["C:\\drone-email.exe"]
+3
View File
@@ -0,0 +1,3 @@
module github.com/drone-plugins/drone-email
go 1.22.1