fabric-samples/ci/templates/fabcar/azure-pipelines-go.yml
denyeart ee959a2eb0
Update to Go 1.16.7 (#491)
Update Go to 1.16.7 and run "go mod tidy"
to clean up go modules in samples.

Signed-off-by: David Enyeart <enyeart@us.ibm.com>
2021-10-01 09:16:56 +01:00

21 lines
491 B
YAML

#
# SPDX-License-Identifier: Apache-2.0
#
steps:
- script: ./startFabric.sh go
workingDirectory: fabcar
displayName: Start Fabric
- task: GoTool@0
displayName: 'Use Go 1.16.7'
inputs:
version: '1.16.7'
- task: Go@0
displayName: 'go build'
inputs:
command: build
arguments: '-o "fabcar"'
workingDirectory: fabcar/go
- script: DISCOVERY_AS_LOCALHOST=TRUE ./fabcar
workingDirectory: fabcar/go
displayName: Run FabCar Application