-
Notifications
You must be signed in to change notification settings - Fork 5
/
appveyor.yml
35 lines (35 loc) · 1.11 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
image: Visual Studio 2017
environment:
nodejs_version: "6.9.2"
# Install scripts. (runs after repo cloning)
install:
- set CI=true
# Download .NET Core 2.0 SDK and add to PATH
- ps: $urlCurrent = "https://dotnetcli.azureedge.net/dotnet/Sdk/2.0.0/dotnet-sdk-2.0.0-win-x64.zip"
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version x64
- ps: $env:BuildNumber= $env:APPVEYOR_BUILD_NUMBER
# Get yarn
- ps: npm install yarn [email protected] -g
- cd %APPVEYOR_BUILD_FOLDER%\src\hosts\CRMCore.WebApp & yarn install
branches:
only:
- master
- release
- dev
- /^(.*\/)?ci-.*$/
- /^rel\/.*/
build_script:
- docker --version
- dotnet --version
- tsc -v
- ps: |
cd $env:APPVEYOR_BUILD_FOLDER\src\hosts\CRMCore.WebApp
dotnet publish -c Release -o ../../../build/release
cd $env:APPVEYOR_BUILD_FOLDER
docker build -t crmcore/crm-window:latest .
docker login -u="$env:DOCKER_USER" -p="$env:DOCKER_PASS"
docker push crmcore/crm-window
test: off
os: Visual Studio 2017