-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml.v4
32 lines (32 loc) · 1.18 KB
/
.travis.yml.v4
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
sudo: required
language: generic
env:
global:
- AZ_REPO=$(lsb_release -cs)
service:
- docker
before_install:
# Downloading Azure CLI and install script
# Get packages needed for the install process
- sudo apt-get update
- sudo 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
- sudo az aks install-cli
script:
- sudo az login --service-principal -u $AZURE_SP_USERNAME -p $AZURE_SP_PASSWORD --tenant $AZURE_SP_TENANT
- sudo az aks get-credentials --resource-group $AZURE_AKS_RESOURCE_GROUP --name $Azure_AKS_Name
deploy:
provider: script
script: bash ./scripts/deploy.sh
on:
branch: master