From a3fe24f4b680b59193e89b841339f5a05b1ebaed Mon Sep 17 00:00:00 2001 From: Simon Stone Date: Tue, 16 Jun 2020 11:25:26 +0100 Subject: [PATCH] Configure IBM Cloud connection (contributes to #71) (#312) Signed-off-by: Simon Stone --- azure-pipelines.yml | 23 +++++++++++++---------- galaxy.yml | 2 +- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2f58e02c..91339460 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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 @@ -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) diff --git a/galaxy.yml b/galaxy.yml index 6c0a94fe..58b402f4 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -4,7 +4,7 @@ --- namespace: ibm name: blockchain_platform -version: 0.0.29 +version: 0.0.30 readme: README.md authors: - Simon Stone