mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Remove ci-build-windows folder (#38778)
This commit is contained in:
parent
316d78f5c3
commit
89716f2806
@ -1,38 +0,0 @@
|
|||||||
# This has to correspond to the version the Drone runners have
|
|
||||||
FROM mcr.microsoft.com/windows:1809
|
|
||||||
|
|
||||||
WORKDIR C:\\App
|
|
||||||
|
|
||||||
RUN powershell Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
|
|
||||||
RUN powershell Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
|
|
||||||
# Scoop first of all needs git to update itself
|
|
||||||
# Run Scoop under PowerShell since it can otherwise fail
|
|
||||||
RUN powershell -Command scoop install git@2.29.1.windows.1
|
|
||||||
RUN powershell -Command scoop install go@1.17
|
|
||||||
RUN powershell -Command scoop install unzip@6.00
|
|
||||||
RUN powershell -Command scoop install gcc@9.3.0-2
|
|
||||||
|
|
||||||
ENV GOPATH C:\\go
|
|
||||||
|
|
||||||
# Install diffutils, in case we need them
|
|
||||||
RUN powershell (New-Object Net.WebClient).DownloadFile(\
|
|
||||||
\"https://sourceforge.net/projects/gnuwin32/files/diffutils/2.8.7-1/diffutils-2.8.7-1-bin.zip\", \
|
|
||||||
\"diffutils-bin.zip\")
|
|
||||||
RUN powershell (New-Object Net.WebClient).DownloadFile(\
|
|
||||||
\"https://sourceforge.net/projects/gnuwin32/files/diffutils/2.8.7-1/diffutils-2.8.7-1-dep.zip\", \
|
|
||||||
\"diffutils-dep.zip\")
|
|
||||||
RUN mkdir -p "C:\Program Files (x86)\GnuWin32"
|
|
||||||
RUN cd "C:\Program Files (x86)\GnuWin32" && 7z e -y C:\App\diffutils-dep.zip && 7z e -y C:\App\diffutils-bin.zip
|
|
||||||
|
|
||||||
RUN powershell (New-Object Net.WebClient).DownloadFile(\
|
|
||||||
\"https://github.com/golangci/golangci-lint/releases/download/v1.37.1/golangci-lint-1.37.1-windows-amd64.zip\", \
|
|
||||||
\"golangci-lint.zip\")
|
|
||||||
RUN powershell (Get-FileHash golangci-lint.zip -Algorithm SHA256).Hash -eq 'a11b73bebd0ab6f2161d3677a5c63883001bf489aeebc494a6aaaead6addd161'
|
|
||||||
RUN 7z e -y golangci-lint.zip
|
|
||||||
|
|
||||||
RUN powershell -Command scoop cache rm '*'
|
|
||||||
|
|
||||||
RUN powershell -Command mkdir -p $(Split-Path -Path $profile)
|
|
||||||
RUN powershell Set-Content -Path $profile -Value '$env:Path += \";C:\App;C:\Program files (x86)\GnuWin32\bin\"'
|
|
||||||
|
|
||||||
ENTRYPOINT ["cmd"]
|
|
@ -1,27 +0,0 @@
|
|||||||
//+build mage
|
|
||||||
|
|
||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"github.com/magefile/mage/mg"
|
|
||||||
"github.com/magefile/mage/sh"
|
|
||||||
)
|
|
||||||
|
|
||||||
const imageName = "grafana/ci-build-windows:0.2.0"
|
|
||||||
|
|
||||||
// Build builds the Docker image.
|
|
||||||
func Build() error {
|
|
||||||
if err := sh.RunV("docker", "build", "-t", imageName, "."); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// Publish publishes the Docker image.
|
|
||||||
func Publish() error {
|
|
||||||
mg.Deps(Build)
|
|
||||||
return sh.RunV("docker", "push", imageName)
|
|
||||||
}
|
|
||||||
|
|
||||||
var Default = Build
|
|
@ -1,15 +0,0 @@
|
|||||||
# Windows Build Docker Image
|
|
||||||
This directory contains a Dockerfile for building a Windows based image containing
|
|
||||||
our CI build environment.
|
|
||||||
|
|
||||||
To build the Docker image:
|
|
||||||
|
|
||||||
```
|
|
||||||
mage
|
|
||||||
```
|
|
||||||
|
|
||||||
To publish the Docker image:
|
|
||||||
|
|
||||||
```
|
|
||||||
mage publish
|
|
||||||
```
|
|
Loading…
Reference in New Issue
Block a user