-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml.tmp
30 lines (30 loc) · 1.02 KB
/
.travis.yml.tmp
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
language: shell
env:
global:
- AZ_REPO=$(lsb_release -cs)
service:
- docker
before_install:
# Downloading Azure CLI and install script
# Get packages needed for the install process
- apt-get update
- apt-get install ca-certificates curl apt-transport-https lsb-release gnupg
# Download and install the Microsoft signing key
- curl -sL https://packages.microsoft.com/keys/microsoft.asc |
gpg --dearmor |
sudo tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg > /dev/null
# Add the Azure CLI software repository
- echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" |
sudo tee /etc/apt/sources.list.d/azure-cli.list
# Update repository information and install the azure-cli package
- sudo apt-get update
- sudo apt-get install azure-cli
# Install Kubectl command
- az aks install-cli
script:
- docker run -d --name azure-vote-front microsoft/azure-vote-front:v1
deploy:
provider: script
script: bash scripts/deploy.sh
on:
branch: master