chore(CI): remove build windows image on appveyor (#598)
This commit is contained in:
parent
3e62681dab
commit
c7112a6eb3
|
@ -1,64 +0,0 @@
|
|||
version: '{build}'
|
||||
image: 'Visual Studio 2019'
|
||||
platform: x64
|
||||
|
||||
max_jobs: 1
|
||||
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
GOPATH: c:\go
|
||||
docker_username:
|
||||
secure: em/TNLUXxG19O/HvbvfJuQ==
|
||||
docker_password:
|
||||
secure: Yo9FJJqihaNz5q8T4Jz8tQ==
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
||||
install:
|
||||
- ps: |
|
||||
choco install -y mingw
|
||||
docker version
|
||||
go version
|
||||
|
||||
build_script:
|
||||
- ps: |
|
||||
if ( $env:APPVEYOR_REPO_TAG -eq 'false' ) {
|
||||
$version = $env:APPVEYOR_REPO_COMMIT
|
||||
$buildDate = $env:APPVEYOR_REPO_COMMIT_TIMESTAMP
|
||||
} else {
|
||||
$version = $env:APPVEYOR_REPO_TAG_NAME
|
||||
$buildDate = $env:APPVEYOR_REPO_COMMIT_TIMESTAMP
|
||||
}
|
||||
go build -a -o release/gorush.exe .
|
||||
|
||||
docker pull microsoft/nanoserver:10.0.14393.1884
|
||||
docker build -f docker/Dockerfile.windows.amd64 -t appleboy/gorush:windows-amd64 .
|
||||
|
||||
test_script:
|
||||
- ps: |
|
||||
docker run --rm appleboy/gorush:windows-amd64 --version
|
||||
|
||||
deploy_script:
|
||||
- ps: |
|
||||
$ErrorActionPreference = 'Stop';
|
||||
if ( $env:APPVEYOR_PULL_REQUEST_NUMBER ) {
|
||||
Write-Host Nothing to deploy.
|
||||
} else {
|
||||
echo $env:DOCKER_PASSWORD | docker login --username $env:DOCKER_USERNAME --password-stdin
|
||||
if ( $env:APPVEYOR_REPO_TAG -eq 'true' ) {
|
||||
$major,$minor,$patch = $env:APPVEYOR_REPO_TAG_NAME.split('.')
|
||||
docker push appleboy/gorush:windows-amd64
|
||||
docker tag appleboy/gorush:windows-amd64 appleboy/gorush:$major.$minor.$patch-windows-amd64
|
||||
docker push appleboy/gorush:$major.$minor.$patch-windows-amd64
|
||||
docker tag appleboy/gorush:windows-amd64 appleboy/gorush:$major.$minor-windows-amd64
|
||||
docker push appleboy/gorush:$major.$minor-windows-amd64
|
||||
docker tag appleboy/gorush:windows-amd64 appleboy/gorush:$major-windows-amd64
|
||||
docker push appleboy/gorush:$major-windows-amd64
|
||||
} else {
|
||||
if ( $env:APPVEYOR_REPO_BRANCH -eq 'master' ) {
|
||||
docker push appleboy/gorush:windows-amd64
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,7 +4,6 @@ A push notification micro server using [Gin](https://github.com/gin-gonic/gin) f
|
|||
|
||||
[![GoDoc](https://godoc.org/github.com/appleboy/gorush?status.svg)](https://godoc.org/github.com/appleboy/gorush)
|
||||
[![Build Status](https://cloud.drone.io/api/badges/appleboy/gorush/status.svg)](https://cloud.drone.io/appleboy/gorush)
|
||||
[![Build status](https://ci.appveyor.com/api/projects/status/ka4hvplssp1q2s5u?svg=true)](https://ci.appveyor.com/project/appleboy/gorush-fp5dh)
|
||||
[![codecov](https://codecov.io/gh/appleboy/gorush/branch/master/graph/badge.svg)](https://codecov.io/gh/appleboy/gorush)
|
||||
[![Go Report Card](https://goreportcard.com/badge/github.com/appleboy/gorush)](https://goreportcard.com/report/github.com/appleboy/gorush)
|
||||
[![codebeat badge](https://codebeat.co/badges/0a4eff2d-c9ac-46ed-8fd7-b59942983390)](https://codebeat.co/projects/github-com-appleboy-gorush)
|
||||
|
|
Loading…
Reference in New Issue