Skip to content

Commit

Permalink
use single publish script (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
nklincoln authored Jan 6, 2021
1 parent c48f9ad commit 369d11e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 42 deletions.
1 change: 1 addition & 0 deletions .build/publish-docker.sh → .build/publish-caliper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ cp ./README.md ./packages/caliper-fisco-bcos/README.md

cd ./packages/caliper-publish/
npm i
./publish.js npm
./publish.js docker --publish
28 changes: 0 additions & 28 deletions .build/publish-npm.sh

This file was deleted.

18 changes: 4 additions & 14 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,26 +104,16 @@ stages:
# having a blind succeeded here will not work if a preceding stage was skipped
condition: and(not(failed('UnitTests')), eq(variables['Build.Reason'], 'IndividualCI'))
jobs:
- job: PublishNPM
displayName: "Publish Caliper NPM packages"
- job: PublishCaliper
displayName: "Publish Caliper to NPM and DockerHub"
steps:
- task: NodeTool@0
inputs:
versionSpec: "10.x"
displayName: "Install Node.js"
- script: .build/publish-npm.sh
displayName: Publish packages
- script: .build/publish-caliper.sh
displayName: Publish Caliper
env:
NPM_TOKEN: "$(npm)"
- job: PublishDocker
displayName: "Publish Caliper Docker images"
steps:
- task: NodeTool@0
inputs:
versionSpec: "10.x"
displayName: "Install Node.js"
- script: .build/publish-docker.sh
displayName: Publish packages
env:
DOCKER_USER: "$(DockerHub-Username)"
DOCKER_TOKEN: "$(DockerHub-Password)"

0 comments on commit 369d11e

Please sign in to comment.