drone-telegram/.appveyor.yml

39 lines
837 B
YAML
Raw Normal View History

version: '{build}'
image: 'Visual Studio 2017'
clone_folder: 'c:\go\src\github.com\appleboy\drone-telegram'
environment:
2017-12-09 14:09:09 +03:00
GOPATH: c:\go
docker_username:
secure: em/TNLUXxG19O/HvbvfJuQ==
docker_password:
secure: Yo9FJJqihaNz5q8T4Jz8tQ==
2017-12-09 14:09:09 +03:00
branches:
only:
- master
install:
2017-12-09 14:09:09 +03:00
- echo %PATH%
- echo %GOPATH%
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
- go version
- go env
- docker version
build_script:
- ps: |
2017-12-09 14:09:09 +03:00
go build .
docker pull microsoft/nanoserver:10.0.14393.1884
docker build -f Dockerfile.windows -t appleboy/drone-telegram:windows .
2017-12-09 14:09:09 +03:00
test_script:
- ps: |
docker run --rm appleboy/drone-telegram:windows --version
2017-12-09 14:09:09 +03:00
deploy_script:
- ps: |
2017-12-09 14:09:09 +03:00
docker login --username $env:DOCKER_USERNAME --password $env:DOCKER_PASSWORD
docker push appleboy/drone-telegram:windows