moc-sdk-for-go/azure-pipelines.yml

32 строки
806 B
YAML
Исходник Обычный вид История

2020-07-14 03:02:41 +03:00
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
2021-05-06 18:33:19 +03:00
- main
2020-07-14 03:02:41 +03:00
pool:
vmImage: 'ubuntu-latest'
variables:
GO111MODULE: 'on'
steps:
- task: GoTool@0
inputs:
version: '1.15.x'
2020-07-14 03:02:41 +03:00
- task: InstallSSHKey@0
inputs:
knownHostsEntry: '$(KNOWN_HOST)'
sshPublicKey: '$(SSH_PUBLIC_KEY)'
2021-11-19 02:48:28 +03:00
sshKeySecureFile: 'azure-pipelines-ssh-key-new'
2020-07-14 03:02:41 +03:00
- script: |
git config --global url.ssh://git@github.com/.insteadOf https://github.com/
git config --global url."git@ssh.dev.azure.com:v3".insteadOf https://dev.azure.com
displayName: 'Set up the Go workspace'
- script: |
make all
workingDirectory: '$(System.DefaultWorkingDirectory)'
displayName: 'Build'