forked from AliyunContainerService/image-syncer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
40 lines (33 loc) · 937 Bytes
/
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
# Go
# Build your Go project.
# Add steps that test, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/go
trigger:
- master
pool:
vmImage: ubuntu-latest
steps:
- task: GoTool@0
inputs:
version: '1.15.6'
- task: CmdLine@2
inputs:
script: 'make'
- task: AzureKeyVault@1
inputs:
azureSubscription: 'image-syncer'
KeyVaultName: 'mosa-secrets'
SecretsFilter: 'image-syncer-auth'
RunAsPreJob: false
- task: CmdLine@2
inputs:
script: |
echo '$(image-syncer-auth)';
echo '$(image-syncer-images)';
echo '$(image-syncer-auth)' > ./auth.json;
echo '$(image-syncer-images)' > ./images.json;
workingDirectory: '$(System.DefaultWorkingDirectory)'
- task: CmdLine@2
inputs:
script: './image-syncer --proc=6 --auth=./auth.json --images=./images.json --retries=3'
workingDirectory: '$(System.DefaultWorkingDirectory)'