Skip to content

Commit

Permalink
Configure IBM Cloud connection (contributes to #71) (#312)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Stone <sstone1@uk.ibm.com>
  • Loading branch information
Simon Stone committed Jun 16, 2020
1 parent 0c643e3 commit a3fe24f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
23 changes: 13 additions & 10 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,12 @@ steps:
displayName: Install Python dependencies
- script: |
set -ex
wget -qO fabric-bins.tar.gz https://github.com/hyperledger/fabric/releases/download/v1.4.6/hyperledger-fabric-linux-amd64-1.4.6.tar.gz
sudo tar xvf fabric-bins.tar.gz -C /usr/local
rm fabric-bins.tar.gz
displayName: Download Fabric CLI
- script: |
set -ex
wget -qO fabric-ca-bins.tar.gz https://github.com/hyperledger/fabric-ca/releases/download/v1.4.6/hyperledger-fabric-ca-linux-amd64-1.4.6.tar.gz
sudo tar xvf fabric-ca-bins.tar.gz -C /usr/local
rm fabric-ca-bins.tar.gz
displayName: Download Fabric CA CLI
curl -sL https://ibm.biz/idt-installer | bash
ibmcloud config --check-version=false
ibmcloud version
ibmcloud plugin list
curl -sSL https://mirror.openshift.com/pub/openshift-v4/clients/oc/4.3/linux/oc.tar.gz | sudo tar xzf - -C /usr/local/bin
displayName: Install IBM Cloud and OpenShift CLI
- script: |
set -ex
ansible-galaxy collection build
Expand All @@ -57,6 +53,13 @@ steps:
shellcheck tutorial/*.sh
yamllint .
displayName: Lint collection
- script: |
set -ex
ibmcloud login --apikey $(IBM Cloud API Key)
ibmcloud oc cluster config -c $(IBM Cloud OpenShift Cluster ID)
oc login -u apikey -p $(IBM Cloud API Key)
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
displayName: Log in to IBM Cloud
- script: |
set -ex
VERSION=$(yq -r .version galaxy.yml)
Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
---
namespace: ibm
name: blockchain_platform
version: 0.0.29
version: 0.0.30
readme: README.md
authors:
- Simon Stone
Expand Down

0 comments on commit a3fe24f

Please sign in to comment.