forked from envoyproxy/envoy-build-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
95 lines (89 loc) · 2.75 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
trigger:
- main
jobs:
- job: build_container_linux
strategy:
matrix:
ubuntu:
OS_DISTRO: ubuntu
PUSH_GCR_IMAGE: true
GCR_IMAGE_NAME: envoy-build
centos:
OS_DISTRO: centos
PUSH_GCR_IMAGE: false
dependsOn: []
timeoutInMinutes: 120
pool:
vmImage: 'ubuntu-18.04'
steps:
- task: DockerInstaller@0
displayName: Docker Installer
inputs:
dockerVersion: 19.03.5
releaseType: stable
- bash: .azure-pipelines/cleanup.sh
displayName: "Removing tools from agent"
- bash: |
./docker_push.sh
workingDirectory: build_container
env:
OS_FAMILY: linux
IMAGE_ARCH: "amd64 arm64"
SOURCE_BRANCH: $(Build.SourceBranch)
DOCKERHUB_USERNAME: $(DockerUsername)
DOCKERHUB_PASSWORD: $(DockerPassword)
GCP_SERVICE_ACCOUNT_KEY: $(GcpServiceAccountKey)
- job: generate_toolchains_linux
dependsOn: "build_container_linux"
pool:
vmImage: 'ubuntu-18.04'
steps:
- template: .azure-pipelines/generate_toolchains.yml
parameters:
bazeliskInstallCommandPrefix: "sudo"
bazeliskInstallPath: "/usr/local/bin/bazel"
bazeliskReleaseFilename: bazelisk-linux-amd64
gcrImageName: "envoy-build"
osFamily: "linux"
- job: build_container_windows
timeoutInMinutes: 90
strategy:
matrix:
windows2019:
OS_DISTRO: windows2019
PUSH_GCR_IMAGE: true
GCR_IMAGE_NAME: envoy-build-windows
dependsOn: []
pool:
vmImage: 'windows-latest'
steps:
- bash: |
curl -fsSL --output "$TEMP/gcloud-sdk.zip" "$GCLOUD_SDK_ARCHIVE_URL"
echo "$GCLOUD_SDK_ARCHIVE_CHECKSUM $TEMP/gcloud-sdk.zip" | sha256sum --check
unzip "$TEMP/gcloud-sdk.zip" -d "$PROGRAMFILES"
echo "##vso[task.prependpath]$PROGRAMFILES/google-cloud-sdk/bin"
env:
GCLOUD_SDK_ARCHIVE_URL: https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-289.0.0-windows-x86_64.zip
GCLOUD_SDK_ARCHIVE_CHECKSUM: c81e80040f7f609dbc50c42cd0cd402988a5c47f467372d40b5aaca0733f46f4
- bash: |
./docker_push.sh
workingDirectory: build_container
env:
OS_FAMILY: windows
IMAGE_ARCH: "amd64"
SOURCE_BRANCH: $(Build.SourceBranch)
DOCKERHUB_USERNAME: $(DockerUsername)
DOCKERHUB_PASSWORD: $(DockerPassword)
GCP_SERVICE_ACCOUNT_KEY: $(GcpServiceAccountKey)
- job: generate_toolchains_windows
dependsOn: ["build_container_windows", "generate_toolchains_linux"]
pool:
vmImage: 'windows-latest'
steps:
- template: .azure-pipelines/generate_toolchains.yml
parameters:
bazeliskInstallCommandPrefix: ""
bazeliskInstallPath: "/usr/bin/bazel.exe"
bazeliskReleaseFilename: bazelisk-windows-amd64.exe
gcrImageName: "envoy-build-windows"
osFamily: "windows"