github.com/yimialmonte/fabric@v2.1.1+incompatible/ci/azure-pipelines-release.yml (about) 1 # Copyright the Hyperledger Fabric contributors. All rights reserved. 2 # 3 # SPDX-License-Identifier: Apache-2.0 4 5 name: RELEASE-$(Date:yyyyMMdd)$(Rev:.rrr) 6 trigger: none 7 pr: none 8 9 variables: 10 - group: credentials 11 - name: GOPATH 12 value: $(Agent.BuildDirectory)/go 13 - name: GOVER 14 value: 1.14.1 15 16 stages: 17 - stage: BuildBinaries 18 dependsOn: [] 19 displayName: "Build Fabric Binaries" 20 jobs: 21 - job: Build 22 pool: 23 vmImage: ubuntu-18.04 24 container: golang:$(GOVER) 25 strategy: 26 matrix: 27 Linux-amd64: 28 TARGET: linux-amd64 29 MacOS-amd64: 30 TARGET: darwin-amd64 31 Windows-amd64: 32 TARGET: windows-amd64 33 steps: 34 - checkout: self 35 path: 'go/src/github.com/hyperledger/fabric' 36 displayName: Checkout Fabric Code 37 - script: ./ci/scripts/create_binary_package.sh 38 displayName: Compile Binary and Create Tarball 39 - publish: release/$(TARGET)/hyperledger-fabric-$(TARGET)-$(RELEASE).tar.gz 40 artifact: hyperledger-fabric-$(TARGET)-$(RELEASE).tar.gz 41 displayName: Publish Release Artifact 42 43 - stage: BuildAndPushDockerImages 44 dependsOn: [] 45 displayName: "Build and Push Fabric Docker Images" 46 jobs: 47 - job: Docker 48 pool: 49 vmImage: ubuntu-18.04 50 steps: 51 - template: install_deps.yml 52 - checkout: self 53 path: 'go/src/github.com/hyperledger/fabric' 54 displayName: Checkout Fabric Code 55 - script: ./ci/scripts/publish_docker.sh 56 env: 57 DOCKER_PASSWORD: $(DockerHub-Password) 58 DOCKER_USERNAME: $(DockerHub-Username) 59 displayName: Publish Docker Images 60 61 - stage: DraftRelease 62 displayName: "Draft GitHub Release" 63 dependsOn: 64 - BuildBinaries 65 - BuildAndPushDockerImages 66 jobs: 67 - job: Release 68 pool: 69 vmImage: ubuntu-18.04 70 steps: 71 - download: current 72 patterns: '*.tar.gz' 73 displayName: Download Artifacts 74 - checkout: self 75 - task: GitHubRelease@0 76 inputs: 77 action: create 78 addChangeLog: true 79 assets: $(Pipeline.Workspace)/*amd64*/* 80 compareWith: lastFullRelease 81 gitHubConnection: fabric-release 82 isDraft: true 83 releaseNotesFile: release_notes/v$(RELEASE).md 84 repositoryName: $(Build.Repository.Name) 85 releaseNotesSource: file 86 tag: v$(RELEASE) 87 tagSource: manual 88 title: v$(RELEASE) 89 displayName: Draft Release of Fabric