forked from Azure/secrets-store-csi-driver-provider-azure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
65 lines (59 loc) · 1.63 KB
/
azure-pipelines.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
trigger:
branches:
include:
- master
pr:
branches:
include:
- master
jobs:
- job: unit_tests
timeoutInMinutes: 5
cancelTimeoutInMinutes: 5
pool:
vmImage: 'ubuntu-latest'
steps:
- task: GoTool@0
inputs:
version: '1.14.1'
- script: |
make build build-windows
displayName: 'build linux and windows binaries'
- script: |
make unit-test
displayName: 'Run unit tests'
- job: e2e_test_kind
pool:
vmImage: 'ubuntu-latest'
timeoutInMinutes: 10
cancelTimeoutInMinutes: 5
workspace:
clean: all
variables:
GOPATH: '$(system.defaultWorkingDirectory)/gopath'
modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)'
steps:
- task: GoTool@0
inputs:
version: '1.14.1'
- script: |
git clone https://github.com/kubernetes-sigs/secrets-store-csi-driver.git $(GOPATH)/src/sigs.k8s.io/secrets-store-csi-driver
sudo add-apt-repository ppa:rmescandon/yq && sudo apt-get update && sudo apt-get install bats && sudo apt-get install yq
displayName: 'Set up workspace and install dependencies'
- script: |
make e2e-bootstrap
export KUBECONFIG=$(kind get kubeconfig-path)
kubectl create ns dev
make e2e-azure
displayName: "Run e2e tests on kind cluster"
env:
AZURE_CLIENT_ID: $(AZURE_CLIENT_ID)
AZURE_CLIENT_SECRET: $(AZURE_CLIENT_SECRET)
KEY_NAME: $(KEY_NAME)
KEY_VERSION: $(KEY_VERSION)
KEYVAULT_NAME: $(KEYVAULT_NAME)
RESOURCE_GROUP: $(RESOURCE_GROUP)
SECRET_NAME: $(SECRET_NAME)
SUBSCRIPTION_ID: $(SUBSCRIPTION_ID)
TENANT_ID: $(TENANT_ID)
CI_KIND_CLUSTER: true