Merge pull request #9 from willsmythe/master

Enable CI with Azure Pipelines
This commit is contained in:
Vladimir Glafirov 2018-12-14 08:43:44 +01:00 коммит произвёл GitHub
Родитель 9e758a6948 9826f37158
Коммит 154c5bc2c4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 30 добавлений и 27 удалений

29
.azure-pipelines.yml Normal file
Просмотреть файл

@ -0,0 +1,29 @@
variables:
KUBECTL_VERSION: v1.9.6
HELM_VERSION: v2.8.2
HELM_PATH: $(System.DefaultWorkingDirectory)/helm
steps:
- task: HelmInstaller@0
inputs:
helmVersion: $(HELM_VERSION)
kubectlVersion: $(KUBECTL_VERSION)
installKubectl: true
displayName: 'Install helm'
- script: |
helm --version
helm init --client-only
helm repo add stable https://kubernetes-charts.storage.googleapis.com
for chart in $(find . -name 'requirements.yaml'); do
helm dep build $(dirname ${chart})
done
displayName: 'Initialize helm'
- script: |
helm lint charts/vsts-agent
displayName: 'Helm lint'
- script: |
helm template charts/vsts-agent
displayName: 'Helm template'

Просмотреть файл

@ -1,26 +0,0 @@
language: generic
env:
global:
- KUBECTL_VERSION="v1.9.6"
- HELM_VERSION="v2.8.2"
install:
- wget https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl -O /tmp/kubectl
- chmod +x /tmp/kubectl
- wget http://storage.googleapis.com/kubernetes-helm/helm-${HELM_VERSION}-linux-amd64.tar.gz -O /tmp/helm.tar.gz
- tar xzf /tmp/helm.tar.gz -C /tmp --strip-components=1
- chmod +x /tmp/helm
- export PATH=$PATH:/tmp
before_script:
- helm init --client-only
- helm repo add stable https://kubernetes-charts.storage.googleapis.com
- |
for chart in $(find . -name 'requirements.yaml'); do
helm dep build $(dirname ${chart})
done
script:
- helm lint charts/vsts-agent
- helm template charts/vsts-agent

Просмотреть файл

@ -1,6 +1,6 @@
## Introduction ## Introduction
[![Build Status](https://travis-ci.org/Azure/helm-vsts-agent.svg?branch=master)](https://travis-ci.org/Azure/helm-vsts-agent) [![Build Status](https://dev.azure.com/azure/helm-vsts-agent/_apis/build/status/Azure.helm-vsts-agent?branchName=master)](https://dev.azure.com/azure/helm-vsts-agent/_build/latest?definitionId=12?branchName=master)
This chart bootstraps a [Visual Studio Team Services agent pool](https://github.com/Microsoft/vsts-agent) on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. This chart bootstraps a [Visual Studio Team Services agent pool](https://github.com/Microsoft/vsts-agent) on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.