From e16175d68c9238b54e2b573a8d2dafaf47380108 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 17 Feb 2019 00:18:35 +0800 Subject: [PATCH] chore: remove appveyor config --- .appveyor.yml | 66 --------------------------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 .appveyor.yml diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 111fcec..0000000 --- a/.appveyor.yml +++ /dev/null @@ -1,66 +0,0 @@ -version: '{build}' -image: 'Visual Studio 2017' -platform: x64 - -clone_folder: 'c:\go\src\github.com\appleboy\drone-telegram' -max_jobs: 1 - -environment: - GOPATH: c:\go - docker_username: - secure: em/TNLUXxG19O/HvbvfJuQ== - docker_password: - secure: Yo9FJJqihaNz5q8T4Jz8tQ== - -branches: - only: - - master - -install: - - echo %PATH% - - echo %GOPATH% - - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% - - go version - - go env - - docker version - -build_script: - - ps: | - if ( $env:APPVEYOR_REPO_TAG -eq 'false' ) { - go build -ldflags "-X main.Version=$env:APPVEYOR_REPO_COMMIT -X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o drone-telegram.exe - } else { - $version = $env:APPVEYOR_REPO_TAG_NAME - go build -ldflags "-X main.Version=$version -X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o drone-telegram.exe - } - docker pull microsoft/nanoserver:10.0.14393.1884 - docker build -f Dockerfile.windows -t appleboy/drone-telegram:windows-amd64 . - -test_script: - - ps: | - docker run --rm appleboy/drone-telegram: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/drone-telegram:windows-amd64 - - docker tag appleboy/drone-telegram:windows-amd64 appleboy/drone-telegram:$major.$minor.$patch-windows-amd64 - docker push appleboy/drone-telegram:$major.$minor.$patch-windows-amd64 - - docker tag appleboy/drone-telegram:windows-amd64 appleboy/drone-telegram:$major.$minor-windows-amd64 - docker push appleboy/drone-telegram:$major.$minor-windows-amd64 - - docker tag appleboy/drone-telegram:windows-amd64 appleboy/drone-telegram:$major-windows-amd64 - docker push appleboy/drone-telegram:$major-windows-amd64 - } else { - if ( $env:APPVEYOR_REPO_BRANCH -eq 'master' ) { - docker push appleboy/drone-telegram:windows-amd64 - } - } - }